Colors: also set defaultTextColor and accent
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 18 Feb 2019 21:07:14 +0000 (23:07 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 18 Feb 2019 21:07:14 +0000 (23:07 +0200)
app/src/main/java/net/ktnx/mobileledger/utils/Colors.java
app/src/main/res/values/styles.xml

index edd9c77..40e953b 100644 (file)
@@ -32,6 +32,10 @@ public class Colors {
         tableRowLightBG = tv.data;
         theme.resolveAttribute(R.attr.colorPrimary, tv, true);
         primary = tv.data;
+        theme.resolveAttribute(android.R.color.tab_indicator_text, tv, true);
+        defaultTextColor = tv.data;
+        theme.resolveAttribute(R.attr.colorAccent, tv, true);
+        accent = tv.data;
 
         // trigger theme observers
         themeWatch.notifyObservers();
index 0221dc1..857b681 100644 (file)
         <item name="drawer_background">#ffffffff</item>
         <item name="table_row_dark_bg">#286c33d4</item>
         <item name="table_row_light_bg">#28ddcbff</item>
-        <item name="textColor">#d0000000</item>
+        <item name="textColor">@android:color/tab_indicator_text</item>
     </style>
 
     <!-- base hue: 261.2245° -->
     <style name="AppTheme.NoActionBar">
         <item name="windowActionBar">false</item>
         <item name="windowNoTitle">true</item>
-        <item name="textColor">#d0000000</item>
+        <item name="textColor">@android:color/tab_indicator_text</item>
         <item name="colorPrimary">#875cd6</item>
         <item name="colorAccent">#6013ec</item>
         <item name="drawer_background">#ffffffff</item>