X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Futils%2FColors.java;h=7b8352efbe6d25329794b8bf69a460c28adac436;hp=edd9c7715d8c3b645b335ac3ec6c2fb0dc8b45dc;hb=09e26d2279484b4dfe0de218b05f075362fff4b5;hpb=e6e7e00fa8e02f5de38a88dcb2b71db379d0be35 diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java b/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java index edd9c771..7b8352ef 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java @@ -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();