From a98a578af3183a63fe7d4c378e2a112f0cf22996 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Sat, 10 Apr 2021 17:13:38 -0400 Subject: [PATCH] Adding Black 'n' Red theme And I thought the dusk theme was edgy and this is the one that actually closes #719 --- .../java/eu/kanade/tachiyomi/util/system/ThemeUtil.kt | 10 ++++++++-- app/src/main/res/values-night/themes.xml | 6 ++++++ app/src/main/res/values/strings.xml | 1 + app/src/main/res/values/themes.xml | 1 + 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/ThemeUtil.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/ThemeUtil.kt index 0ce5588530..f7083cf2fa 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/ThemeUtil.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/ThemeUtil.kt @@ -76,6 +76,11 @@ object ThemeUtil { AppCompatDelegate.MODE_NIGHT_YES, R.string.amoled_black ), + BLACK_N_RED( + R.style.Theme_Tachiyomi_BlackAndRed, + AppCompatDelegate.MODE_NIGHT_YES, + R.string.black_and_red + ), LIGHT_BLUE( R.style.Theme_Tachiyomi_AllBlue, AppCompatDelegate.MODE_NIGHT_NO, @@ -155,7 +160,7 @@ object ThemeUtil { @ColorInt val darkBackground: Int = Color.parseColor( when (styleRes) { - R.style.Theme_Tachiyomi_Amoled -> "#000000" + R.style.Theme_Tachiyomi_Amoled, R.style.Theme_Tachiyomi_BlackAndRed -> "#000000" R.style.Theme_Tachiyomi_MidnightDusk -> "#16151D" else -> "#1C1C1D" } @@ -173,6 +178,7 @@ object ThemeUtil { val darkAccent: Int = Color.parseColor( when (styleRes) { R.style.Theme_Tachiyomi_MidnightDusk -> "#F02475" + R.style.Theme_Tachiyomi_BlackAndRed -> "#AA2200" else -> "#3399FF" } ) @@ -215,7 +221,7 @@ object ThemeUtil { val darkBottomBar: Int = Color.parseColor( when (styleRes) { R.style.Theme_Tachiyomi_AllBlue -> "#54759E" - R.style.Theme_Tachiyomi_Amoled -> "#000000" + R.style.Theme_Tachiyomi_Amoled, R.style.Theme_Tachiyomi_BlackAndRed -> "#000000" R.style.Theme_Tachiyomi_MidnightDusk -> "#201F27" else -> "#212121" } diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index fa3e17e721..563a5cd450 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -21,4 +21,10 @@ @color/colorAmoledPrimary + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1357261d26..ddbea71279 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -568,6 +568,7 @@ Dark Blue Midnight Dusk Spring Blossom + Black \'n\' Red Pure White System default (White + Black) System default (All Blue) diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 7abd62e6dd..806fce1505 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -69,6 +69,7 @@ false