From 0d62aedfbb183fbe7c1a4886ed7505c5ce6c8518 Mon Sep 17 00:00:00 2001 From: Soitora Date: Thu, 15 Jul 2021 14:46:30 +0200 Subject: [PATCH] Added "Tako" theme (#5546) * Added "Ninomae" theme Based on the lovely Ninomae Ina'nis, for Arkon and Flat * Use updated colors from Ghostbear Adapted after feedback Co-Authored-By: Andreas <6576096+ghostbear@users.noreply.github.com> * Tweak the Ninomae theme further * Sort themes alphabetically - Sorts themes alphabetically. - Use the same capital word system in colors.xml for themes.xml as well. - Rename AMOLED theme to AMOLED mode in theme.xml and color.xml references. * More tweaks * Style incognito bar Uses a dark purple which looks super clean instead of a washed out gray This sets the groundwork for other themes too * Tweak final onPrimary color * Rename Ninomae to Tako RIP Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com> --- .../data/preference/PreferenceValues.kt | 3 +- .../ui/base/activity/BaseThemedActivity.kt | 7 +- .../main/res/layout-sw720dp/main_activity.xml | 2 +- app/src/main/res/layout/main_activity.xml | 2 +- .../main/res/layout/main_activity_toolbar.xml | 2 +- app/src/main/res/values-night/colors.xml | 13 ++- app/src/main/res/values-night/themes.xml | 23 ++--- app/src/main/res/values/attrs.xml | 3 + app/src/main/res/values/colors.xml | 43 ++++++---- app/src/main/res/values/strings.xml | 7 +- app/src/main/res/values/themes.xml | 85 ++++++++++++------- 11 files changed, 122 insertions(+), 68 deletions(-) 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 ca2fb3e92f..73ee5da1ba 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 @@ -27,8 +27,9 @@ object PreferenceValues { GREEN_APPLE(R.string.theme_greenapple), MIDNIGHT_DUSK(R.string.theme_midnightdusk), STRAWBERRY_DAIQUIRI(R.string.theme_strawberrydaiquiri), - YOTSUBA(R.string.theme_yotsuba), + TAKO(R.string.theme_tako), YINYANG(R.string.theme_yinyang), + YOTSUBA(R.string.theme_yotsuba), // Deprecated DARK_BLUE(null), diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt index 4d558310ae..a1a298c231 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt @@ -53,12 +53,15 @@ abstract class BaseThemedActivity : AppCompatActivity() { PreferenceValues.AppTheme.STRAWBERRY_DAIQUIRI -> { resIds += R.style.Theme_Tachiyomi_StrawberryDaiquiri } - PreferenceValues.AppTheme.YOTSUBA -> { - resIds += R.style.Theme_Tachiyomi_Yotsuba + PreferenceValues.AppTheme.TAKO -> { + resIds += R.style.Theme_Tachiyomi_Tako } PreferenceValues.AppTheme.YINYANG -> { resIds += R.style.Theme_Tachiyomi_YinYang } + PreferenceValues.AppTheme.YOTSUBA -> { + resIds += R.style.Theme_Tachiyomi_Yotsuba + } else -> { resIds += R.style.Theme_Tachiyomi } diff --git a/app/src/main/res/layout-sw720dp/main_activity.xml b/app/src/main/res/layout-sw720dp/main_activity.xml index 656a2b8ae7..f11ab0286f 100644 --- a/app/src/main/res/layout-sw720dp/main_activity.xml +++ b/app/src/main/res/layout-sw720dp/main_activity.xml @@ -52,7 +52,7 @@ android:id="@+id/incognito_mode" android:layout_width="0dp" android:layout_height="wrap_content" - android:background="@color/md_grey_800" + android:background="?attr/incognitoBackgroundColor" android:visibility="gone" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml index 100a6f550d..908360fcda 100644 --- a/app/src/main/res/layout/main_activity.xml +++ b/app/src/main/res/layout/main_activity.xml @@ -47,7 +47,7 @@ android:id="@+id/incognito_mode" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/md_grey_800" + android:background="?attr/incognitoBackgroundColor" android:visibility="gone" tools:visibility="visible"> diff --git a/app/src/main/res/layout/main_activity_toolbar.xml b/app/src/main/res/layout/main_activity_toolbar.xml index 3f63dbd5af..6bca157438 100644 --- a/app/src/main/res/layout/main_activity_toolbar.xml +++ b/app/src/main/res/layout/main_activity_toolbar.xml @@ -40,7 +40,7 @@ android:id="@+id/incognito_mode" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/md_grey_800" + android:background="?attr/incognitoBackgroundColor" android:visibility="gone" tools:visibility="visible"> diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index a1b1e56215..7c8adb3381 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -14,7 +14,18 @@ @color/md_black_1000 #1F48E484 - + + #F3B375 + #242431 + @color/color_on_primary_tako + @color/accent_tako + #1FF3B375 + #2A2A3C + #21212E + #17171C + @color/accent_tako + + #FFFFFF #000000 #777777 diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 3148c1ce75..2502b7b860 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -1,17 +1,9 @@ - - - - + + + + diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index f5b2ffba80..2a96500f8b 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -32,6 +32,9 @@ + + + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index ffa5a8ad43..b2a8f38f28 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -13,32 +13,43 @@ #54759E #1F54759E - - #ED4A65 - #1FED4A65 - - - #FC8C5C - #1FFC8C5C - #188140 @color/md_white_1000 #1F188140 - - #000000 - #FFFFFF - #999999 - #000000 - #F02475 #16151D #201F27 #1FF02475 - + + #ED4A65 + #1FED4A65 + + + #66577E + #F3B375 + @color/color_on_primary_tako + #574360 + #1F66577E + #F7F5FF + #F2EDF7 + @color/accent_tako + #F29940 + + + #000000 + #FFFFFF + #999999 + #000000 + + + #FC8C5C + #1FFC8C5C + + @android:color/transparent #000001 #000000 @@ -88,7 +99,7 @@ #47a84a - + #CB84E296 #CCFF7733 #CC95818D diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9951a578d1..543a472d99 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -148,12 +148,13 @@ On App theme Default - Strawberry Daiquiri - Yotsuba Blue Green Apple - Yin & Yang Midnight Dusk + Strawberry Daiquiri + Tako + Yin & Yang + Yotsuba Pure black dark mode Start screen Language diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index b84a4773df..a09a091de0 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -5,12 +5,12 @@ - + + - - - - - - - + - + + + + + + + + + + - - - +