aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-01-13 00:39:32 -0800
committerAllan Wang <me@allanwang.ca>2021-01-13 00:39:32 -0800
commitffefc86e0af62845a4493359c0d00b6d77290b26 (patch)
treeb3ed766972c856abba7b0dbbbcab940ec4a0ab26 /app/src/main
parent8fe2427cff223a509441545227ac58b215903929 (diff)
downloadfrost-ffefc86e0af62845a4493359c0d00b6d77290b26.tar.gz
frost-ffefc86e0af62845a4493359c0d00b6d77290b26.tar.bz2
frost-ffefc86e0af62845a4493359c0d00b6d77290b26.zip
Update theme provider docs
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/injectors/ThemeProvider.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/injectors/ThemeProvider.kt b/app/src/main/kotlin/com/pitchedapps/frost/injectors/ThemeProvider.kt
index 142a69e7..570f3719 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/injectors/ThemeProvider.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/injectors/ThemeProvider.kt
@@ -37,13 +37,12 @@ import kotlinx.coroutines.withContext
import org.koin.core.context.GlobalContext
/**
- * Created by Allan Wang on 2017-05-31.
- * Mapping of the available assets
- * The enum name must match the css file name
+ * Provides [InjectorContract] for each [ThemeCategory].
+ * Can be reloaded to take in changes from [Prefs]
*/
class ThemeProvider(private val context: Context, private val prefs: Prefs) {
- var theme: Theme = Theme.values[prefs.theme]
+ private var theme: Theme = Theme.values[prefs.theme]
private val injectors: MutableMap<ThemeCategory, InjectorContract> = mutableMapOf()