Dark amoled theme
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<resources>
|
||||
<color name="blue_primary">#1565C0</color>
|
||||
<color name="blue_primary_dark">#283593</color>
|
||||
<color name="blue_primary_darker">#1A237E</color>
|
||||
<color name="red_accent">#FF8A65</color>
|
||||
<color name="dim">#99000000</color>
|
||||
<color name="error">#E57373</color>
|
||||
|
||||
8
app/src/main/res/values-night/themes.xml
Normal file
8
app/src/main/res/values-night/themes.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppTheme.Amoled">
|
||||
<item name="colorPrimary">@color/blue_primary_dark</item>
|
||||
<item name="colorPrimaryDark">@color/blue_primary_darker</item>
|
||||
<item name="android:windowBackground">@android:color/black</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -168,4 +168,7 @@
|
||||
<string name="zoom_mode_fit_height">Подогнать по высоте</string>
|
||||
<string name="zoom_mode_fit_width">Подогнать по ширине</string>
|
||||
<string name="zoom_mode_keep_start">Исходный размер</string>
|
||||
<string name="black_dark_theme">Чёрная тёмная тема</string>
|
||||
<string name="black_dark_theme_summary">Полезно для AMOLED экранов</string>
|
||||
<string name="restart_required">Требуется перезапуск</string>
|
||||
</resources>
|
||||
@@ -2,6 +2,7 @@
|
||||
<resources>
|
||||
<color name="blue_primary">#1976D2</color>
|
||||
<color name="blue_primary_dark">#1565C0</color>
|
||||
<color name="blue_primary_darker">#283593</color>
|
||||
<color name="red_accent">#EF5350</color>
|
||||
<color name="grey">#424242</color>
|
||||
<color name="grey_dark">#212121</color>
|
||||
|
||||
@@ -170,4 +170,7 @@
|
||||
<string name="zoom_mode_fit_height">Fit to height</string>
|
||||
<string name="zoom_mode_fit_width">Fit to width</string>
|
||||
<string name="zoom_mode_keep_start">Keep at start</string>
|
||||
<string name="black_dark_theme">Black dark theme</string>
|
||||
<string name="black_dark_theme_summary">Useful for AMOLED screens</string>
|
||||
<string name="restart_required">Restart required</string>
|
||||
</resources>
|
||||
@@ -6,9 +6,12 @@
|
||||
<item name="actionModeStyle">@style/AppActionMode</item>
|
||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme" parent="BaseAppTheme">
|
||||
<item name="colorPrimary">@color/blue_primary</item>
|
||||
<item name="colorPrimaryDark">@color/blue_primary_dark</item>
|
||||
<item name="colorAccent">@color/red_accent</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.Amoled" />
|
||||
</resources>
|
||||
@@ -13,6 +13,13 @@
|
||||
app:iconSpaceReserved="false"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="amoled_theme"
|
||||
app:iconSpaceReserved="false"
|
||||
android:title="@string/black_dark_theme"
|
||||
android:summary="@string/black_dark_theme_summary" />
|
||||
|
||||
<Preference
|
||||
android:key="list_mode"
|
||||
android:persistent="false"
|
||||
@@ -74,6 +81,7 @@
|
||||
android:entries="@array/zoom_modes"
|
||||
android:key="zoom_mode"
|
||||
android:title="@string/scale_mode"
|
||||
app:useSimpleSummaryProvider="true"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<SwitchPreference
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
android:entries="@array/zoom_modes"
|
||||
android:key="zoom_mode"
|
||||
android:title="@string/scale_mode"
|
||||
app:iconSpaceReserved="false" />
|
||||
app:iconSpaceReserved="false"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
|
||||
Reference in New Issue
Block a user