]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/utils/Colors.java
migrate to AndroidX
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / utils / Colors.java
index edd9c7715d8c3b645b335ac3ec6c2fb0dc8b45dc..7b8352efbe6d25329794b8bf69a460c28adac436 100644 (file)
@@ -2,8 +2,8 @@ package net.ktnx.mobileledger.utils;
 
 import android.app.Activity;
 import android.content.res.Resources;
-import android.support.annotation.ColorInt;
-import android.support.annotation.ColorLong;
+import androidx.annotation.ColorInt;
+import androidx.annotation.ColorLong;
 import android.util.Log;
 import android.util.TypedValue;
 
@@ -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();