From ffefc86e0af62845a4493359c0d00b6d77290b26 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Wed, 13 Jan 2021 00:39:32 -0800 Subject: Update theme provider docs --- .../main/kotlin/com/pitchedapps/frost/injectors/ThemeProvider.kt | 7 +++---- 1 file 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 = mutableMapOf() -- cgit v1.2.3