Support for "true" dark mode
This commit is contained in:
parent
3f85809db9
commit
ace0a86652
|
@ -148,8 +148,8 @@ fun setThemeFromPreferences(preferences: SharedPreferences, resources: Resources
|
|||
themes[1] -> {
|
||||
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
|
||||
}
|
||||
//Dark
|
||||
themes[2] -> {
|
||||
//Dark or AMOLED dark
|
||||
themes[2], themes[3] -> {
|
||||
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
|
||||
}
|
||||
else -> {
|
||||
|
|
|
@ -3,11 +3,13 @@
|
|||
<item>default</item>
|
||||
<item>light</item>
|
||||
<item>dark</item>
|
||||
<item>dark-amoled</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="theme_entries">
|
||||
<item>@string/default_system</item>
|
||||
<item>@string/light_theme</item>
|
||||
<item>@string/dark_theme</item>
|
||||
<item>@string/dark_amoled_theme</item>
|
||||
</string-array>
|
||||
</resources>
|
|
@ -35,6 +35,10 @@
|
|||
<!-- Theme Preferences: dark theme option -->
|
||||
<string name="dark_theme">Dark</string>
|
||||
|
||||
<!-- Theme Preferences: dark theme option, "true" dark (100% black, turns pixels off on AMOLED screens)-->
|
||||
<string name="dark_amoled_theme">\"True\" Dark (AMOLED) (experimental)</string>
|
||||
|
||||
|
||||
<string name="always_show_nsfw">Always show sensitive content</string>
|
||||
|
||||
<!-- Notifications: follow notification -->
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit c03698e241de89725c5ded420da696f7961387d4
|
||||
Subproject commit fadb08a370787bc74a602e585f82f95e04832ebb
|
Loading…
Reference in New Issue