Skip to content

Commit 224ba37

Browse files
committed
use white text highlight color at B&W theme
1 parent 9e2429a commit 224ba37

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,11 @@ class TextFragment : NoteFragment() {
122122
return
123123
}
124124

125-
setColors(config.textColor, context.getAdjustedPrimaryColor(), config.backgroundColor)
125+
val adjustedPrimaryColor = context.getAdjustedPrimaryColor()
126+
setColors(config.textColor, adjustedPrimaryColor, config.backgroundColor)
126127
setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
128+
highlightColor = adjustedPrimaryColor.adjustAlpha(.4f)
129+
127130
gravity = config.getTextGravity()
128131
if (text.toString() != fileContents) {
129132
if (!skipTextUpdating) {

app/src/main/res/layout/open_note_item.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
android:id="@+id/open_note_item_radio_button"
1111
android:layout_width="match_parent"
1212
android:layout_height="wrap_content"
13-
android:layout_toLeftOf="@+id/open_note_item_icon"/>
13+
android:layout_toStartOf="@+id/open_note_item_icon"/>
1414

1515
<ImageView
1616
android:id="@+id/open_note_item_icon"

0 commit comments

Comments
 (0)