mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 14:09:17 +01:00
Restore dark blue theme. Closes #1302
This commit is contained in:
parent
ae6d052978
commit
2c4fd340c8
@ -50,6 +50,7 @@ class MainActivity : BaseActivity() {
|
|||||||
setTheme(when (preferences.theme()) {
|
setTheme(when (preferences.theme()) {
|
||||||
2 -> R.style.Theme_Tachiyomi_Dark
|
2 -> R.style.Theme_Tachiyomi_Dark
|
||||||
3 -> R.style.Theme_Tachiyomi_Amoled
|
3 -> R.style.Theme_Tachiyomi_Amoled
|
||||||
|
4 -> R.style.Theme_Tachiyomi_DarkBlue
|
||||||
else -> R.style.Theme_Tachiyomi
|
else -> R.style.Theme_Tachiyomi
|
||||||
})
|
})
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
@ -52,8 +52,9 @@ class SettingsGeneralController : SettingsController() {
|
|||||||
intListPreference {
|
intListPreference {
|
||||||
key = Keys.theme
|
key = Keys.theme
|
||||||
titleRes = R.string.pref_theme
|
titleRes = R.string.pref_theme
|
||||||
entriesRes = arrayOf(R.string.light_theme, R.string.dark_theme, R.string.amoled_theme)
|
entriesRes = arrayOf(R.string.light_theme, R.string.dark_theme,
|
||||||
entryValues = arrayOf("1", "2", "3")
|
R.string.amoled_theme, R.string.darkblue_theme)
|
||||||
|
entryValues = arrayOf("1", "2", "3", "4")
|
||||||
defaultValue = "1"
|
defaultValue = "1"
|
||||||
summary = "%s"
|
summary = "%s"
|
||||||
|
|
||||||
|
@ -10,9 +10,9 @@
|
|||||||
<item name="android:navigationBarColor">@color/colorPrimaryDark</item>
|
<item name="android:navigationBarColor">@color/colorPrimaryDark</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!--============-->
|
<!--=============-->
|
||||||
<!-- Dark Theme -->
|
<!-- Dark Themes -->
|
||||||
<!--============-->
|
<!--=============-->
|
||||||
<style name="Theme.Tachiyomi.Dark" parent="Theme.Base.Dark">
|
<style name="Theme.Tachiyomi.Dark" parent="Theme.Base.Dark">
|
||||||
<!-- Attributes specific for SDK 21 and up -->
|
<!-- Attributes specific for SDK 21 and up -->
|
||||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||||
@ -20,6 +20,16 @@
|
|||||||
<item name="android:navigationBarColor">@color/colorDarkPrimaryDark</item>
|
<item name="android:navigationBarColor">@color/colorDarkPrimaryDark</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="Theme.Tachiyomi.DarkBlue" parent="Theme.Base.Dark">
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
|
|
||||||
|
<!-- Attributes specific for SDK 21 and up -->
|
||||||
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||||
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
|
<item name="android:navigationBarColor">@color/colorDarkPrimaryDark</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<!--==============-->
|
<!--==============-->
|
||||||
<!-- Amoled Theme -->
|
<!-- Amoled Theme -->
|
||||||
<!--==============-->
|
<!--==============-->
|
||||||
|
@ -139,6 +139,7 @@
|
|||||||
<string name="light_theme">Main theme</string>
|
<string name="light_theme">Main theme</string>
|
||||||
<string name="dark_theme">Dark theme</string>
|
<string name="dark_theme">Dark theme</string>
|
||||||
<string name="amoled_theme">AMOLED theme</string>
|
<string name="amoled_theme">AMOLED theme</string>
|
||||||
|
<string name="darkblue_theme">Dark blue</string>
|
||||||
<string name="pref_start_screen">Start screen</string>
|
<string name="pref_start_screen">Start screen</string>
|
||||||
<string name="pref_language">Language</string>
|
<string name="pref_language">Language</string>
|
||||||
<string name="system_default">System default</string>
|
<string name="system_default">System default</string>
|
||||||
|
@ -83,6 +83,11 @@
|
|||||||
<!-- Attributes specific for SDK 16 to SDK 20 -->
|
<!-- Attributes specific for SDK 16 to SDK 20 -->
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="Theme.Tachiyomi.DarkBlue" parent="Theme.Base.Dark">
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<!--==============-->
|
<!--==============-->
|
||||||
<!-- Amoled Theme -->
|
<!-- Amoled Theme -->
|
||||||
<!--==============-->
|
<!--==============-->
|
||||||
|
Loading…
Reference in New Issue
Block a user