From cd69ccf7c49f486a6c90a7cee0d32a74ea00247d Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 23 Feb 2020 16:15:42 -0800 Subject: Remove pref component from theme --- app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt index 15d7ba9e..3d394abe 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt @@ -77,10 +77,10 @@ class Prefs(factory: KPrefFactory) : KPref("${BuildConfig.APPLICATION_ID}.prefs" val t: Theme by loader val textColor: Int - get() = t.textColor + get() = t.textColorGetter(this) val accentColor: Int - get() = t.accentColor + get() = t.accentColorGetter(this) inline val accentColorForWhite: Int get() = when { @@ -97,13 +97,13 @@ class Prefs(factory: KPrefFactory) : KPref("${BuildConfig.APPLICATION_ID}.prefs" .withAlpha(30) val bgColor: Int - get() = t.bgColor + get() = t.backgroundColorGetter(this) val headerColor: Int - get() = t.headerColor + get() = t.headerColorGetter(this) val iconColor: Int - get() = t.iconColor + get() = t.iconColorGetter(this) val themeInjector: InjectorContract get() = t.injector -- cgit v1.2.3