From 172f9f95559ae30833229ec531bffb644aa7a455 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 18 Feb 2019 23:07:14 +0200 Subject: [PATCH] Colors: also set defaultTextColor and accent --- app/src/main/java/net/ktnx/mobileledger/utils/Colors.java | 4 ++++ app/src/main/res/values/styles.xml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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