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] -> {
|
themes[1] -> {
|
||||||
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
|
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
|
||||||
}
|
}
|
||||||
//Dark
|
//Dark or AMOLED dark
|
||||||
themes[2] -> {
|
themes[2], themes[3] -> {
|
||||||
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
|
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
|
|
|
@ -3,11 +3,13 @@
|
||||||
<item>default</item>
|
<item>default</item>
|
||||||
<item>light</item>
|
<item>light</item>
|
||||||
<item>dark</item>
|
<item>dark</item>
|
||||||
|
<item>dark-amoled</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="theme_entries">
|
<string-array name="theme_entries">
|
||||||
<item>@string/default_system</item>
|
<item>@string/default_system</item>
|
||||||
<item>@string/light_theme</item>
|
<item>@string/light_theme</item>
|
||||||
<item>@string/dark_theme</item>
|
<item>@string/dark_theme</item>
|
||||||
|
<item>@string/dark_amoled_theme</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
</resources>
|
</resources>
|
|
@ -35,6 +35,10 @@
|
||||||
<!-- Theme Preferences: dark theme option -->
|
<!-- Theme Preferences: dark theme option -->
|
||||||
<string name="dark_theme">Dark</string>
|
<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>
|
<string name="always_show_nsfw">Always show sensitive content</string>
|
||||||
|
|
||||||
<!-- Notifications: follow notification -->
|
<!-- Notifications: follow notification -->
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit c03698e241de89725c5ded420da696f7961387d4
|
Subproject commit fadb08a370787bc74a602e585f82f95e04832ebb
|
Loading…
Reference in New Issue