diff options
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/injectors/ThemeProvider.kt | 7 |
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() |