From 923777a5c714c0e7621ac056cf2d30608c549259 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 3 Jan 2020 23:32:39 +0100 Subject: [PATCH] use white color for urls in B&W theme --- .../com/simplemobiletools/notes/pro/fragments/TextFragment.kt | 2 +- app/src/main/res/layout/fragment_text.xml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt index e0375dec..d49360d6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt @@ -122,7 +122,7 @@ class TextFragment : NoteFragment() { return } - setColors(config.textColor, config.primaryColor, config.backgroundColor) + setColors(config.textColor, context.getAdjustedPrimaryColor(), config.backgroundColor) setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize()) gravity = config.getTextGravity() if (text.toString() != fileContents) { diff --git a/app/src/main/res/layout/fragment_text.xml b/app/src/main/res/layout/fragment_text.xml index ef39270e..f3a3b6e6 100644 --- a/app/src/main/res/layout/fragment_text.xml +++ b/app/src/main/res/layout/fragment_text.xml @@ -26,7 +26,6 @@ android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentEnd="true" - android:layout_alignParentRight="true" android:padding="@dimen/small_margin" android:textStyle="italic" tools:text="123"/>