From 6f904967f902b3b2376d59601b6310a53a2fa3a6 Mon Sep 17 00:00:00 2001 From: farnsie Date: Wed, 20 Sep 2023 09:39:49 +0500 Subject: [PATCH] Themes feat(themes): added two new themes; Cotton Candy and Mocha --- .../eu/kanade/domain/ui/model/AppTheme.kt | 2 + .../ui/base/delegate/ThemingDelegate.kt | 6 +++ .../res/values-night/colors_cottoncandy.xml | 27 ++++++++++ .../main/res/values-night/colors_mocha.xml | 36 +++++++++++++ .../main/res/values/colors_cottoncandy.xml | 28 ++++++++++ app/src/main/res/values/colors_mocha.xml | 36 +++++++++++++ app/src/main/res/values/themes.xml | 54 +++++++++++++++++++ i18n/src/main/res/values/strings-aniyomi.xml | 3 ++ 8 files changed, 192 insertions(+) create mode 100644 app/src/main/res/values-night/colors_cottoncandy.xml create mode 100644 app/src/main/res/values-night/colors_mocha.xml create mode 100644 app/src/main/res/values/colors_cottoncandy.xml create mode 100644 app/src/main/res/values/colors_mocha.xml diff --git a/app/src/main/java/eu/kanade/domain/ui/model/AppTheme.kt b/app/src/main/java/eu/kanade/domain/ui/model/AppTheme.kt index 250188535f..836699e360 100644 --- a/app/src/main/java/eu/kanade/domain/ui/model/AppTheme.kt +++ b/app/src/main/java/eu/kanade/domain/ui/model/AppTheme.kt @@ -5,9 +5,11 @@ import eu.kanade.tachiyomi.R enum class AppTheme(val titleResId: Int?) { DEFAULT(R.string.label_default), MONET(R.string.theme_monet), + COTTONCANDY(R.string.theme_cottoncandy), GREEN_APPLE(R.string.theme_greenapple), LAVENDER(R.string.theme_lavender), MIDNIGHT_DUSK(R.string.theme_midnightdusk), + MOCHA(R.string.theme_mocha), STRAWBERRY_DAIQUIRI(R.string.theme_strawberrydaiquiri), TAKO(R.string.theme_tako), TEALTURQUOISE(R.string.theme_tealturquoise), 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 4ad7474fe3..3a14e7a694 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 @@ -17,6 +17,9 @@ interface ThemingDelegate { AppTheme.MONET -> { resIds += R.style.Theme_Tachiyomi_Monet } + AppTheme.COTTONCANDY -> { + resIds += R.style.Theme_Tachiyomi_CottonCandy + } AppTheme.GREEN_APPLE -> { resIds += R.style.Theme_Tachiyomi_GreenApple } @@ -26,6 +29,9 @@ interface ThemingDelegate { AppTheme.MIDNIGHT_DUSK -> { resIds += R.style.Theme_Tachiyomi_MidnightDusk } + AppTheme.MOCHA -> { + resIds += R.style.Theme_Tachiyomi_Mocha + } AppTheme.STRAWBERRY_DAIQUIRI -> { resIds += R.style.Theme_Tachiyomi_StrawberryDaiquiri } diff --git a/app/src/main/res/values-night/colors_cottoncandy.xml b/app/src/main/res/values-night/colors_cottoncandy.xml new file mode 100644 index 0000000000..e22affcda7 --- /dev/null +++ b/app/src/main/res/values-night/colors_cottoncandy.xml @@ -0,0 +1,27 @@ + + + + #FFB1C1 + #5F112B + #7C2941 + #FFD9DF + #64D3FF + #003546 + #004D63 + #BCE9FF + #FFB1C1 + #7C2941 + #FFD9DF + #201A1B + #ECE0E0 + #201A1B + #ECE0E0 + #524345 + #D6C2C4 + #9F8C8F + #201A1B + #ECE0E0 + #9A4058 + @color/cottoncandy_primary + + diff --git a/app/src/main/res/values-night/colors_mocha.xml b/app/src/main/res/values-night/colors_mocha.xml new file mode 100644 index 0000000000..bc49d88e31 --- /dev/null +++ b/app/src/main/res/values-night/colors_mocha.xml @@ -0,0 +1,36 @@ + + + + #ebc248 + #3d2f00 + #584400 + #ffe08d + #ebc248 + #3d2f00 + #584400 + #ffe08d + #adcfad + #19361f + #304d34 + #c9ecc8 + #1e1b16 + #e8e1d9 + #1e1b16 + #e8e1d9 + #4c4639 + #cfc5b4 + #989080 + #211A18 + #EDE0DD + #AE3200 + diff --git a/app/src/main/res/values/colors_cottoncandy.xml b/app/src/main/res/values/colors_cottoncandy.xml new file mode 100644 index 0000000000..fc504bb8f2 --- /dev/null +++ b/app/src/main/res/values/colors_cottoncandy.xml @@ -0,0 +1,28 @@ + + + + #9A4058 + #FFFFFF + #FFD9DF + #3F0017 + #5bcefa + #FFFFFF + #BCE9FF + #001F2A + #9A4058 + #FFFFFF + #FFD9DF + #3F0017 + #FFFBFF + #201A1B + #FFFBFF + #201A1B + #F3DDE0 + #524345 + #847375 + #FAEEEF + #352F30 + #FFB1C1 + @color/cottoncandy_primary + + diff --git a/app/src/main/res/values/colors_mocha.xml b/app/src/main/res/values/colors_mocha.xml new file mode 100644 index 0000000000..ee6f65bcd3 --- /dev/null +++ b/app/src/main/res/values/colors_mocha.xml @@ -0,0 +1,36 @@ + + + + #745b00 + #ffffff + #ffe08d + #241a00 + #745b00 + #ffffff + #ffe08d + #241a00 + #47664a + #ffffff + #c9ecc8 + #04210b + #fffbff + #1e1b16 + #fffbff + #1e1b16 + #ebe1cf + #4c4639 + #7e7667 + #FBEEEB + #362F2D + #FFB59D + diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 00b457cd28..368f3bc022 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -88,6 +88,33 @@ + + + +