From 1fbfc38d6fba56b5a6d391f6964d03cc59f94046 Mon Sep 17 00:00:00 2001 From: dece Date: Mon, 14 Feb 2022 19:15:02 +0100 Subject: [PATCH] colors: use colors more adequately Turns out Solarized has a bunch of rules like maintaining the same contrast between normal text on normal background with selected text on slightly highlighted background and so on. This commit attempts to fix issues related to that, and indeed it seems to look better! --- app/src/main/res/drawable/devborders.xml | 2 +- .../main/res/layout/fragment_history_item.xml | 2 +- app/src/main/res/layout/fragment_identity.xml | 2 +- .../main/res/layout/gemtext_blockquote.xml | 1 + .../main/res/layout/gemtext_preformatted.xml | 2 +- app/src/main/res/values-night/colors.xml | 20 +++--- app/src/main/res/values/colors.xml | 61 +++++++++---------- 7 files changed, 43 insertions(+), 47 deletions(-) diff --git a/app/src/main/res/drawable/devborders.xml b/app/src/main/res/drawable/devborders.xml index bc9f51f..c6ce957 100644 --- a/app/src/main/res/drawable/devborders.xml +++ b/app/src/main/res/drawable/devborders.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_history_item.xml b/app/src/main/res/layout/fragment_history_item.xml index 1746fad..4b079b0 100644 --- a/app/src/main/res/layout/fragment_history_item.xml +++ b/app/src/main/res/layout/fragment_history_item.xml @@ -44,7 +44,7 @@ android:layout_alignParentEnd="true" android:textSize="16sp" android:textStyle="italic" - android:textColor="@color/text_light" /> + android:textColor="@color/text" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_identity.xml b/app/src/main/res/layout/fragment_identity.xml index ef29a18..75ad0c9 100644 --- a/app/src/main/res/layout/fragment_identity.xml +++ b/app/src/main/res/layout/fragment_identity.xml @@ -25,7 +25,7 @@ android:layout_marginTop="0dp" android:layout_marginBottom="8dp" android:textSize="12sp" - android:textColor="@color/text_light" + android:textColor="@color/text" android:fontFamily="@font/preformatted" android:typeface="monospace" /> diff --git a/app/src/main/res/layout/gemtext_blockquote.xml b/app/src/main/res/layout/gemtext_blockquote.xml index 30fa5a8..d36bbe8 100644 --- a/app/src/main/res/layout/gemtext_blockquote.xml +++ b/app/src/main/res/layout/gemtext_blockquote.xml @@ -10,6 +10,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" style="@style/CometText" + android:textColor="@color/text_light" android:background="@color/background_emph" android:textStyle="italic" /> diff --git a/app/src/main/res/layout/gemtext_preformatted.xml b/app/src/main/res/layout/gemtext_preformatted.xml index 8ff6f6f..d5e2ee0 100644 --- a/app/src/main/res/layout/gemtext_preformatted.xml +++ b/app/src/main/res/layout/gemtext_preformatted.xml @@ -9,7 +9,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="14sp" - android:textColor="@color/text" + android:textColor="@color/text_light" android:fontFamily="@font/preformatted" android:typeface="monospace" android:padding="4dp" diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 503995d..7106065 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -1,13 +1,13 @@ - #002b36 - #073642 - #93a1a1 - #839496 - #d33682 - #073642 - #2aa198 - #073642 - #fdf6e3 - #586e75 + @color/base03 + @color/base02 + @color/base1 + @color/base0 + @color/magenta + @color/base02 + @color/cyan + @color/base02 + @color/base3 + @color/base01 \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 3d463eb..9848879 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,37 +1,32 @@ - #000000 + #002b36 + #073642 + #586e75 + #657b83 + #839496 + #93a1a1 + #eee8d5 + #fdf6e3 + #b58900 + #cb4b16 + #dc322f + #d33682 + #6c71c4 + #268bd2 + #2aa198 + #859900 - #fdf6e3 - #eee8d5 - #93a1a1 - #657b83 - #d33682 - #6c71c4 - #6c71c4 - #073642 - #268bd2 - #2aa198 - #002b36 - #fdf6e3 - + @color/base3 + @color/base2 + @color/base00 + @color/base01 + @color/magenta + @color/violet + @color/violet + @color/base02 + @color/blue + @color/cyan + @color/base3 + @color/base02 \ No newline at end of file