瀏覽代碼

add Theme "Teal & Turquoise" (#5681)

* add Theme "Teal & Turquoise"

* re sorting & change tertiary dark

* use alpha on ripple color & capitalize
Riztard Lanthorn 3 年之前
父節點
當前提交
83436c9550

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt

@@ -29,6 +29,7 @@ object PreferenceValues {
         MIDNIGHT_DUSK(R.string.theme_midnightdusk),
         STRAWBERRY_DAIQUIRI(R.string.theme_strawberrydaiquiri),
         TAKO(R.string.theme_tako),
+        TEALTURQUOISE(R.string.theme_tealturquoise),
         YINYANG(R.string.theme_yinyang),
         YOTSUBA(R.string.theme_yotsuba),
 

+ 3 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt

@@ -39,6 +39,9 @@ abstract class BaseThemedActivity : AppCompatActivity() {
                 PreferenceValues.AppTheme.TAKO -> {
                     resIds += R.style.Theme_Tachiyomi_Tako
                 }
+                PreferenceValues.AppTheme.TEALTURQUOISE -> {
+                    resIds += R.style.Theme_Tachiyomi_TealTurquoise
+                }
                 PreferenceValues.AppTheme.YINYANG -> {
                     resIds += R.style.Theme_Tachiyomi_YinYang
                 }

+ 7 - 0
app/src/main/res/values-night/colors.xml

@@ -33,6 +33,13 @@
     <color name="background_tako">#21212E</color>
     <color name="filter_tako">@color/accent_tako</color>
 
+    <!-- Teal & Turquoise Theme -->
+    <color name="accent_tealturquoise">#40E0D0</color>
+    <color name="color_on_primary_tealturquoise">#000000</color>
+    <color name="tertiary_tealturquoise">#BF1F2F</color>
+    <color name="color_on_tertiary_tealturquoise">#FFFFFF</color>
+    <color name="ripple_colored_tealturquoise">#1F40E0D0</color>
+
     <!-- Yin & Yang Theme -->
     <color name="accent_yinyang">#FFFFFF</color>
     <color name="color_on_secondary_yinyang">#000000</color>

+ 7 - 0
app/src/main/res/values/colors.xml

@@ -49,6 +49,13 @@
     <color name="background_tako">#F2EDF7</color>
     <color name="filter_tako">#F29940</color>
 
+    <!-- Teal & Turquoise Theme -->
+    <color name="accent_tealturquoise">#008080</color>
+    <color name="color_on_primary_tealturquoise">#FFFFFF</color>
+    <color name="tertiary_tealturquoise">#FF7F7F</color>
+    <color name="color_on_tertiary_tealturquoise">#000000</color>
+    <color name="ripple_colored_tealturquoise">#1F008080</color>
+
     <!-- Yin & Yang Theme -->
     <color name="accent_yinyang">#000000</color>
     <color name="color_on_secondary_yinyang">#FFFFFF</color>

+ 1 - 0
app/src/main/res/values/strings.xml

@@ -153,6 +153,7 @@
     <string name="theme_midnightdusk">Midnight Dusk</string>
     <string name="theme_strawberrydaiquiri">Strawberry Daiquiri</string>
     <string name="theme_tako">Tako</string>
+    <string name="theme_tealturquoise">Teal &amp; Turquoise</string>
     <string name="theme_yinyang">Yin &amp; Yang</string>
     <string name="theme_yotsuba">Yotsuba</string>
     <string name="pref_dark_theme_pure_black">Pure black dark mode</string>

+ 11 - 0
app/src/main/res/values/themes.xml

@@ -128,6 +128,17 @@
         <item name="colorFilterActive">@color/filter_tako</item>
     </style>
 
+    <!--== Teal & Turquoise Theme ==-->
+    <style name="Theme.Tachiyomi.TealTurquoise">
+        <!-- Theme Colors -->
+        <item name="colorPrimary">@color/accent_tealturquoise</item>
+        <item name="colorOnPrimary">@color/color_on_primary_tealturquoise</item>
+        <item name="colorOnSecondary">@color/color_on_primary_tealturquoise</item>
+        <item name="colorTertiary">@color/tertiary_tealturquoise</item>
+        <item name="colorOnTertiary">@color/color_on_tertiary_tealturquoise</item>
+        <item name="colorControlHighlight">@color/ripple_colored_tealturquoise</item>
+    </style>
+
     <!--== Yin & Yang Theme ==-->
     <style name="Theme.Tachiyomi.YinYang">
         <!-- Theme Colors -->