add Yin Yang Theme (#5508)

* add Yin Yang Theme

* change download badge color to yin yang as well

* update string

* fix &
This commit is contained in:
Riztard Lanthorn 2021-07-08 20:12:23 +07:00 committed by GitHub
parent fb35d7af59
commit d9ea621e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 0 deletions

View File

@ -28,6 +28,7 @@ object PreferenceValues {
MIDNIGHT_DUSK(R.string.theme_midnightdusk),
STRAWBERRY_DAIQUIRI(R.string.theme_strawberrydaiquiri),
YOTSUBA(R.string.theme_yotsuba),
YINYANG(R.string.theme_yinyang),
// Deprecated
DARK_BLUE(null),

View File

@ -56,6 +56,9 @@ abstract class BaseThemedActivity : AppCompatActivity() {
PreferenceValues.AppTheme.YOTSUBA -> {
resIds += R.style.Theme_Tachiyomi_Yotsuba
}
PreferenceValues.AppTheme.YINYANG -> {
resIds += R.style.Theme_Tachiyomi_YinYang
}
else -> {
resIds += R.style.Theme_Tachiyomi
}

View File

@ -2,9 +2,15 @@
<resources>
<color name="splash">@color/background_default</color>
<!-- Default Theme -->
<color name="accent_default">#3399FF</color>
<color name="divider_default">@color/md_white_1000_12</color>
<color name="surface_default">#242529</color>
<color name="background_default">#202125</color>
<color name="ripple_colored_default">#1F3399FF</color>
<!-- Yin Yang Theme -->
<color name="accent_yinyang">#FFFFFF</color>
<color name="color_on_secondary_yinyang">#000000</color>
<color name="ripple_colored_yinyang">#777777</color>
</resources>

View File

@ -25,6 +25,11 @@
<color name="accent_greenapple">#48E484</color>
<color name="ripple_colored_greenapple">#1F48E484</color>
<!-- Yin Yang Theme -->
<color name="accent_yinyang">#000000</color>
<color name="color_on_secondary_yinyang">#FFFFFF</color>
<color name="ripple_colored_yinyang">#999999</color>
<!-- Midnight Dusk Theme -->
<color name="accent_midnightdusk">#F02475</color>
<color name="background_midnightdusk">#16151D</color>

View File

@ -152,6 +152,7 @@
<string name="theme_yotsuba">Yotsuba</string>
<string name="theme_blue">Blue</string>
<string name="theme_greenapple">Green Apple</string>
<string name="theme_yinyang">Yin &amp; Yang</string>
<string name="theme_midnightdusk">Midnight Dusk</string>
<string name="pref_dark_theme_pure_black">Pure black dark mode</string>
<string name="pref_start_screen">Start screen</string>

View File

@ -111,6 +111,16 @@
<item name="lightSystemBarsOnPrimary">true</item>
</style>
<!--== Yin Yang theme ==-->
<style name="Theme.Tachiyomi.YinYang">
<!-- Theme colors -->
<item name="colorPrimary">@color/accent_yinyang</item>
<item name="colorOnSecondary">@color/color_on_secondary_yinyang</item>
<item name="colorTertiary">@color/color_on_secondary_yinyang</item>
<item name="colorOnTertiary">@color/accent_yinyang</item>
<item name="colorControlHighlight">@color/ripple_colored_yinyang</item>
</style>
<!--== Midnight Dusk theme ==-->
<style name="Theme.Tachiyomi.MidnightDusk">
<!-- Theme colors -->