From b60e11114422252191056841d4e36b1fbc68c8e7 Mon Sep 17 00:00:00 2001 From: UlrichKu Date: Fri, 10 May 2024 14:39:08 +0200 Subject: [PATCH] 3477 tweak colors for contrast (#3921) Fixes: #3477 This tweaks two colors: * for the dark theme a new slightly darker (timeline) background is used. * for the light theme a darker shade of blue is used as highlight color (`colorPrimary` and `colorSecondary`) Additional change: * Use green and red more consistent: use existing colors for the diff display; move the new light variants to colors.xml like all colors --- .../components/compose/ComposeActivity.kt | 2 +- .../main/res/values-night/theme_colors.xml | 9 +++-- app/src/main/res/values/colors.xml | 6 ++- app/src/main/res/values/styles.xml | 39 +++++++++---------- app/src/main/res/values/theme_colors.xml | 9 +++-- 5 files changed, 37 insertions(+), 28 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt index 4c064dd05e..d589d85bb1 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt @@ -1058,7 +1058,7 @@ class ComposeActivity : binding.composeCharactersLeftView.text = String.format(Locale.getDefault(), "%d", remainingLength) val textColor = if (remainingLength < 0) { - getColor(R.color.tusky_red) + getColor(R.color.warning_color) } else { MaterialColors.getColor( binding.composeCharactersLeftView, diff --git a/app/src/main/res/values-night/theme_colors.xml b/app/src/main/res/values-night/theme_colors.xml index e47febfcbe..647691ae42 100644 --- a/app/src/main/res/values-night/theme_colors.xml +++ b/app/src/main/res/values-night/theme_colors.xml @@ -1,6 +1,7 @@ - + @color/tusky_blue + @color/tusky_blue @color/tusky_grey_30 @color/tusky_grey_25 @@ -21,6 +22,8 @@ @color/tusky_orange + @color/tusky_red_lighter + @color/header_background_filter_dark false @@ -31,6 +34,6 @@ #CC444B5D - #00731B - #DF0000 + @color/tusky_green + @color/tusky_red diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 79a16f803c..7d31b9a13c 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,12 +1,15 @@ #2b90d9 + #217aba #56a7e1 #ca8f04 #fab207 - #19a341 + #00731B #25d069 + #CCFFD8 #DF1553 + #FFC0C0 #fff #000 @@ -16,6 +19,7 @@ #070b14 #16191f + #21222c #282c37 #313543 #444b5d diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 610b50af87..db118da3fa 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -48,10 +48,10 @@ 16sp 18sp - @color/tusky_blue + @color/colorPrimary @color/white - @color/tusky_blue + @color/colorSecondary @color/white @color/colorSurface @@ -91,6 +91,23 @@ @style/TuskyPreferenceTheme + + + @@ -138,24 +155,6 @@ ?android:attr/textColorTertiary - - - -