|
|
|
@ -30,6 +30,7 @@ import org.isoron.uhabits.core.preferences.Preferences
|
|
|
|
|
import org.isoron.uhabits.core.ui.ThemeSwitcher
|
|
|
|
|
import org.isoron.uhabits.core.ui.views.DarkTheme
|
|
|
|
|
import org.isoron.uhabits.core.ui.views.LightTheme
|
|
|
|
|
import org.isoron.uhabits.core.ui.views.PureBlackTheme
|
|
|
|
|
import org.isoron.uhabits.core.ui.views.Theme
|
|
|
|
|
import org.isoron.uhabits.inject.ActivityContext
|
|
|
|
|
import org.isoron.uhabits.inject.ActivityScope
|
|
|
|
@ -66,7 +67,7 @@ constructor(
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override fun applyPureBlackTheme() {
|
|
|
|
|
currentTheme = DarkTheme()
|
|
|
|
|
currentTheme = PureBlackTheme()
|
|
|
|
|
context.setTheme(R.style.AppBaseThemeDark_PureBlack)
|
|
|
|
|
(context as Activity).window.navigationBarColor =
|
|
|
|
|
ContextCompat.getColor(context, R.color.black)
|
|
|
|
|