]> git.ktnx.net Git - mobile-ledger.git/commitdiff
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 edd9c7715d8c3b645b335ac3ec6c2fb0dc8b45dc..40e953b14cbadbb398edb32dbbd5482f3dfe9753 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 0221dc13376e4fe112638e4fb16e9dfb5ae82db7..857b681adf114e1d126fbd46070338f5e0ba5696 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>