mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-14 03:35:12 +02:00
Added "Yotsuba" theme (#5290)
This commit is contained in:
committed by
GitHub
parent
4dfb3cc972
commit
9b967177c5
@ -22,6 +22,7 @@ object PreferenceValues {
|
||||
default,
|
||||
blue,
|
||||
strawberrydaiquiri,
|
||||
yotsuba
|
||||
}
|
||||
|
||||
// Keys are lowercase to match legacy string values
|
||||
|
@ -41,6 +41,7 @@ abstract class BaseThemedActivity : AppCompatActivity() {
|
||||
LightThemeVariant.default -> R.style.Theme_Tachiyomi_Light
|
||||
LightThemeVariant.blue -> R.style.Theme_Tachiyomi_Light_Blue
|
||||
LightThemeVariant.strawberrydaiquiri -> R.style.Theme_Tachiyomi_Light_StrawberryDaiquiri
|
||||
LightThemeVariant.yotsuba -> R.style.Theme_Tachiyomi_Light_Yotsuba
|
||||
}
|
||||
}
|
||||
setTheme(themeId)
|
||||
|
@ -124,12 +124,14 @@ class SettingsGeneralController : SettingsController() {
|
||||
entriesRes = arrayOf(
|
||||
R.string.theme_light_default,
|
||||
R.string.theme_light_blue,
|
||||
R.string.theme_light_strawberrydaiquiri
|
||||
R.string.theme_light_strawberrydaiquiri,
|
||||
R.string.theme_light_yotsuba
|
||||
)
|
||||
entryValues = arrayOf(
|
||||
Values.LightThemeVariant.default.name,
|
||||
Values.LightThemeVariant.blue.name,
|
||||
Values.LightThemeVariant.strawberrydaiquiri.name
|
||||
Values.LightThemeVariant.strawberrydaiquiri.name,
|
||||
Values.LightThemeVariant.yotsuba.name
|
||||
)
|
||||
defaultValue = Values.LightThemeVariant.default.name
|
||||
summary = "%s"
|
||||
|
Reference in New Issue
Block a user