aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/enums
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-07-18 20:02:06 -0700
committerAllan Wang <me@allanwang.ca>2020-07-18 20:02:06 -0700
commit5eb18e7464ceb5b7029912498ab02cf9b2556903 (patch)
tree32d184c7ef27eeaf5f6639bc9300d5cb822d372a /app/src/main/kotlin/com/pitchedapps/frost/enums
parent0fc1e0c9c13c6cf551f985c3617f1bcaf8f62aa6 (diff)
downloadfrost-5eb18e7464ceb5b7029912498ab02cf9b2556903.tar.gz
frost-5eb18e7464ceb5b7029912498ab02cf9b2556903.tar.bz2
frost-5eb18e7464ceb5b7029912498ab02cf9b2556903.zip
Split prefs into segments
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/enums')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/enums/Theme.kt12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/enums/Theme.kt b/app/src/main/kotlin/com/pitchedapps/frost/enums/Theme.kt
index d682ad3b..bb2514f5 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/enums/Theme.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/enums/Theme.kt
@@ -22,7 +22,7 @@ import com.pitchedapps.frost.R
import com.pitchedapps.frost.injectors.CssAssets
import com.pitchedapps.frost.injectors.InjectorContract
import com.pitchedapps.frost.injectors.JsActions
-import com.pitchedapps.frost.prefs.Prefs
+import com.pitchedapps.frost.prefs.sections.ThemePrefs
/**
* Created by Allan Wang on 2017-06-14.
@@ -33,11 +33,11 @@ const val BLUE_LIGHT = 0xff5d86dd.toInt()
enum class Theme(
@StringRes val textRes: Int,
val injector: InjectorContract,
- val textColorGetter: (Prefs) -> Int,
- val accentColorGetter: (Prefs) -> Int,
- val backgroundColorGetter: (Prefs) -> Int,
- val headerColorGetter: (Prefs) -> Int,
- val iconColorGetter: (Prefs) -> Int
+ val textColorGetter: (ThemePrefs) -> Int,
+ val accentColorGetter: (ThemePrefs) -> Int,
+ val backgroundColorGetter: (ThemePrefs) -> Int,
+ val headerColorGetter: (ThemePrefs) -> Int,
+ val iconColorGetter: (ThemePrefs) -> Int
) {
DEFAULT(R.string.kau_default,