Просмотр исходного кода

Fix toolbar text color in light blue theme

arkon 3 лет назад
Родитель
Сommit
5f5fc77877
2 измененных файлов с 6 добавлено и 1 удалено
  1. 2 0
      app/src/main/res/values/styles.xml
  2. 4 1
      app/src/main/res/values/themes.xml

+ 2 - 0
app/src/main/res/values/styles.xml

@@ -32,6 +32,8 @@
 
     <style name="Widget.Tachiyomi.Toolbar.Colored" parent="Widget.MaterialComponents.Toolbar">
         <item name="android:background">?attr/colorToolbar</item>
+        <item name="titleTextColor">?attr/colorOnToolbar</item>
+        <item name="subtitleTextColor">?attr/colorOnToolbar</item>
         <item name="android:elevation">0dp</item>
     </style>
 

+ 4 - 1
app/src/main/res/values/themes.xml

@@ -84,7 +84,7 @@
     <style name="Theme.Tachiyomi.Blue">
         <!-- Theme Colors -->
         <item name="colorToolbar">@color/accent_blue</item>
-        <item name="colorOnToolbar">?attr/colorOnPrimary</item>
+        <item name="colorOnToolbar">@color/md_white_1000</item>
         <item name="colorPrimary">@color/primary_blue</item>
         <item name="colorControlHighlight">@color/ripple_colored_blue</item>
     </style>
@@ -169,6 +169,9 @@
 
     <!--== Colored Bars (toolbar-navbar-navrail) Mode Overlay ==-->
     <style name="ThemeOverlay.Tachiyomi.ColoredBars" parent="">
+        <!-- Base background/text colors -->
+        <item name="background">?attr/colorPrimary</item>
+
         <!-- Themes -->
         <item name="actionBarTheme">@style/ThemeOverlay.Tachiyomi.ActionBar.Colored</item>
         <item name="toolbarNavigationButtonStyle">@style/Widget.Tachiyomi.Toolbar.Button.Navigation</item>