From 58c0c2bb1d5c0881301899f149a70da2d4078682 Mon Sep 17 00:00:00 2001 From: 1minutetomidnight Date: Sun, 21 Aug 2022 16:40:19 +0400 Subject: [PATCH 1/3] Create Crayola Theme --- .../data/preference/PreferenceValues.kt | 1 + .../ui/base/delegate/ThemingDelegate.kt | 3 ++ .../res/values-night/colors_crayolablue.xml | 36 +++++++++++++++++++ .../main/res/values/colors_crayolablue.xml | 36 +++++++++++++++++++ app/src/main/res/values/strings.xml | 1 + app/src/main/res/values/themes.xml | 27 ++++++++++++++ 6 files changed, 104 insertions(+) create mode 100644 app/src/main/res/values-night/colors_crayolablue.xml create mode 100644 app/src/main/res/values/colors_crayolablue.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt index 9ffe6f0681e9..41b797331fc0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt @@ -41,6 +41,7 @@ object PreferenceValues { YINYANG(R.string.theme_yinyang), YOTSUBA(R.string.theme_yotsuba), TIDAL_WAVE(R.string.theme_tidalwave), + CRAYOLA_BLUE(R.string.theme_crayolablue), // Deprecated DARK_BLUE(null), diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/delegate/ThemingDelegate.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/delegate/ThemingDelegate.kt index 177e507ce2f4..d7023d018e1c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/delegate/ThemingDelegate.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/delegate/ThemingDelegate.kt @@ -44,6 +44,9 @@ interface ThemingDelegate { PreferenceValues.AppTheme.TIDAL_WAVE -> { resIds += R.style.Theme_Tachiyomi_TidalWave } + PreferenceValues.AppTheme.CRAYOLA_BLUE -> { + resIds += R.style.Theme_Tachiyomi_CrayolaBlue + } else -> { resIds += R.style.Theme_Tachiyomi } diff --git a/app/src/main/res/values-night/colors_crayolablue.xml b/app/src/main/res/values-night/colors_crayolablue.xml new file mode 100644 index 000000000000..209aa679b6df --- /dev/null +++ b/app/src/main/res/values-night/colors_crayolablue.xml @@ -0,0 +1,36 @@ + + + + #3080ff + #FFFFFF + #185bc7 + #FFFFFF + #3080ff + #FFFFFF + #3080ff + #FFFFFF + #55971C + #FFFFFF + #386412 + #E5E1E5 + #16151D + #E5E1E5 + #16151D + #E5E1E5 + #434352 + #c2c1d6 + #8c8d9f + #333043 + #FFFFFF + #3080ff + #000C2C + diff --git a/app/src/main/res/values/colors_crayolablue.xml b/app/src/main/res/values/colors_crayolablue.xml new file mode 100644 index 000000000000..ed7749e8cd70 --- /dev/null +++ b/app/src/main/res/values/colors_crayolablue.xml @@ -0,0 +1,36 @@ + + + + #005abb + #FFFFFF + #d9e3ff + #000d3f + #005abb + #FFFFFF + #d9e3ff + #000d3f + #006638 + #FFFFFF + #00894b + #001d2d + #FFFBFF + #1C1B1F + #FFFBFF + #1C1B1F + #dde2f3 + #464352 + #767384 + #F4F0F4 + #313033 + #b1bdff + #005abb + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 013f61eb585a..7df59924259f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -171,6 +171,7 @@ Yin & Yang Yotsuba Tidal Wave + Crayola Blue Pure black dark mode Navigation Side navigation icon alignment diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 6a70f005d984..23ae066f430b 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -345,6 +345,33 @@ @color/tidalwave_primaryInverse + + +