纯黑深色模式主界面失效问题 #83

This commit is contained in:
HapeLee
2025-10-12 21:18:17 +08:00
parent cd9213e00b
commit 978d8442a6
2 changed files with 8 additions and 12 deletions
+6 -11
View File
@@ -69,19 +69,14 @@ class App : Application() {
override fun onCreate() {
when (getPrefString("app_theme", "0")) {
"11" -> {
if (AppConfig.customMode == "accent")
setTheme(R.style.ThemeOverlay_WhiteBackground)
DynamicColors.applyToActivitiesIfAvailable(this, DynamicColorsOptions.Builder()
.setContentBasedSource(this.primaryColor)
.build())
}
if (getPrefString("app_theme", "0") == "11") {
if (AppConfig.customMode == "accent")
setTheme(R.style.ThemeOverlay_WhiteBackground)
DynamicColors.applyToActivitiesIfAvailable(this, DynamicColorsOptions.Builder()
.setContentBasedSource(this.primaryColor)
.build())
}
if (AppConfig.pureBlack)
setTheme(R.style.ThemeOverlay_PureBlack)
super.onCreate()
FirebaseManager.init(this)
CrashHandler(this)