|
|
@ -13,6 +13,7 @@ object AppConfig { |
|
|
|
return when (context.getPrefString(PreferKey.themeMode, "0")) { |
|
|
|
return when (context.getPrefString(PreferKey.themeMode, "0")) { |
|
|
|
"1" -> false |
|
|
|
"1" -> false |
|
|
|
"2" -> true |
|
|
|
"2" -> true |
|
|
|
|
|
|
|
"3" -> false |
|
|
|
else -> context.sysIsDarkMode() |
|
|
|
else -> context.sysIsDarkMode() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -27,6 +28,9 @@ object AppConfig { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val isEInkMode: Boolean |
|
|
|
|
|
|
|
get() = App.INSTANCE.getPrefString(PreferKey.themeMode) == "3" |
|
|
|
|
|
|
|
|
|
|
|
var isTransparentStatusBar: Boolean |
|
|
|
var isTransparentStatusBar: Boolean |
|
|
|
get() = App.INSTANCE.getPrefBoolean("transparentStatusBar") |
|
|
|
get() = App.INSTANCE.getPrefBoolean("transparentStatusBar") |
|
|
|
set(value) { |
|
|
|
set(value) { |
|
|
@ -80,9 +84,6 @@ object AppConfig { |
|
|
|
val ttsSpeechPer: String |
|
|
|
val ttsSpeechPer: String |
|
|
|
get() = App.INSTANCE.getPrefString(PreferKey.ttsSpeechPer) ?: "0" |
|
|
|
get() = App.INSTANCE.getPrefString(PreferKey.ttsSpeechPer) ?: "0" |
|
|
|
|
|
|
|
|
|
|
|
val isEInkMode: Boolean |
|
|
|
|
|
|
|
get() = App.INSTANCE.getPrefBoolean(PreferKey.eInkMode) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val clickAllNext: Boolean get() = App.INSTANCE.getPrefBoolean(PreferKey.clickAllNext, false) |
|
|
|
val clickAllNext: Boolean get() = App.INSTANCE.getPrefBoolean(PreferKey.clickAllNext, false) |
|
|
|
|
|
|
|
|
|
|
|
var chineseConverterType: Int |
|
|
|
var chineseConverterType: Int |
|
|
|