From 6251c77563de1d0f5ae6e67114c32b85716cca17 Mon Sep 17 00:00:00 2001 From: Niko Diamadis Date: Mon, 18 Oct 2021 18:54:49 +0200 Subject: [PATCH] Implement better accent colors --- .../java/com/cyb3rko/cavedroid/MainActivity.kt | 2 +- app/src/main/res/values-night/colors.xml | 2 +- app/src/main/res/values/themes.xml | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/cyb3rko/cavedroid/MainActivity.kt b/app/src/main/java/com/cyb3rko/cavedroid/MainActivity.kt index ce0caac..cb71fb9 100644 --- a/app/src/main/java/com/cyb3rko/cavedroid/MainActivity.kt +++ b/app/src/main/java/com/cyb3rko/cavedroid/MainActivity.kt @@ -90,7 +90,7 @@ class MainActivity : AppCompatActivity() { if (mySPR.getString(THEME, R.style.Theme_Cavedroid_Standard.toString())!!.toInt() != R.style.Theme_Cavedroid_Standard) { if (!Utils.isNightModeActive(resources)) { - theme.resolveAttribute(R.attr.colorSecondary, typedValue, true) + theme.resolveAttribute(R.attr.colorSecondaryVariant, typedValue, true) binding.navView.setBackgroundColor(typedValue.data) } } diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index a76c048..2ff1b52 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -5,6 +5,6 @@ #FFFFFF @android:color/primary_text_dark - #343843 + #2A334A #2E392A \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index efb563f..5c64e83 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -20,8 +20,8 @@ @color/colorPrimaryVariant @color/white - #00A1D9 - #00A1D9 + #187CCA + #ADD9DF @color/black ?attr/colorPrimaryVariant @@ -34,8 +34,8 @@ @color/colorPrimaryVariant @color/white - #00A1D9 - #00A1D9 + #187CCA + #ADD9DF @color/black ?attr/colorPrimaryVariant @@ -48,8 +48,8 @@ #2F5023 @color/white - #C2E7B4 - #A3CF92 + #73AF5D + #D0E8C7 @color/black ?attr/colorPrimaryVariant @@ -62,8 +62,8 @@ #2F5023 @color/white - #C2E7B4 - #A3CF92 + #73AF5D + #D0E8C7 @color/black ?attr/colorPrimaryVariant