From: Damyan Ivanov Date: Mon, 18 Feb 2019 21:07:14 +0000 (+0200) Subject: Colors: also set defaultTextColor and accent X-Git-Tag: v0.7~66 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=172f9f95559ae30833229ec531bffb644aa7a455;p=mobile-ledger.git Colors: also set defaultTextColor and accent --- 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..40e953b1 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java @@ -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(); diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 0221dc13..857b681a 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -25,14 +25,14 @@ #ffffffff #286c33d4 #28ddcbff - #d0000000 + @android:color/tab_indicator_text