diff --git a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt index cfa7aafc9..9a480d5cd 100644 --- a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt +++ b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt @@ -131,6 +131,14 @@ object ReadBookConfig { } } + fun setStatusIconDark(isDark: Boolean) { + if (App.INSTANCE.isNightTheme) { + darkStatusIconNight = isDark + } else { + darkStatusIcon = isDark + } + } + fun textColor(): Int { return if (App.INSTANCE.isNightTheme) Color.parseColor(textColorNight) else Color.parseColor(textColor)