Add AMOLED mode (#279)
This commit is contained in:

committed by
Rafał Borcz

parent
269af4b7ba
commit
2bf7755157
@ -2,7 +2,7 @@
|
||||
<solid android:color="@null" />
|
||||
<stroke
|
||||
android:width="1dip"
|
||||
android:color="#61000000" />
|
||||
android:color="@color/spinner_stroke" />
|
||||
<corners android:radius="4dip" />
|
||||
<padding
|
||||
android:bottom="0dip"
|
||||
|
@ -130,7 +130,7 @@
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_marginLeft="7dp"
|
||||
android:layout_marginBottom="48dp"
|
||||
android:background="?android:colorBackground"
|
||||
android:background="?android:windowBackground"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingRight="4dp"
|
||||
android:text="@string/login_host_hint"
|
||||
|
4
app/src/main/res/values-night/colors.xml
Normal file
4
app/src/main/res/values-night/colors.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="spinner_stroke">#61FFFFFF</color>
|
||||
</resources>
|
@ -1,6 +1,6 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<style name="WulkanowyTheme" parent="@style/Theme.AppCompat.DayNight">
|
||||
<style name="WulkanowyTheme" parent="@style/Theme.MaterialComponents.Bridge">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorPrimary</item>
|
||||
@ -9,6 +9,7 @@
|
||||
<item name="android:navigationBarColor" tools:targetApi="21">@color/bottom_nav_background</item>
|
||||
<item name="dividerColor">@color/divider_inverse</item>
|
||||
<item name="chip_backgroundColor">@color/chip_backgroundColor_inverse</item>
|
||||
<item name="android:textColorTertiary">?android:textColorPrimary</item>
|
||||
<item name="chip_labelColor">@color/chip_labelColor_inverse</item>
|
||||
<item name="chip_detailed_backgroundColor">@color/chip_backgroundColor_inverse</item>
|
||||
<item name="filterable_list_backgroundColor">@color/filterable_list_backgroundColor_inverse</item>
|
||||
@ -24,4 +25,10 @@
|
||||
<item name="about_libraries_dividerDark_openSource">@color/about_libraries_dividerDark_openSource_dark</item>
|
||||
<item name="about_libraries_dividerLight_openSource">@color/about_libraries_dividerLight_openSource_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="WulkanowyTheme.Black" parent="WulkanowyTheme.NoActionBar">
|
||||
<item name="android:windowBackground">@android:color/black</item>
|
||||
<item name="android:navigationBarColor" tools:targetApi="21">@android:color/black</item>
|
||||
<item name="bottomNavBackground">@android:color/black</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
@ -242,7 +242,7 @@
|
||||
<string name="pref_view_list">Domyślny widok</string>
|
||||
<string name="pref_view_grade_average_mode">Obliczanie średniej końcoworocznej</string>
|
||||
<string name="pref_view_present">Pokazuj obecność we frekwencji</string>
|
||||
<string name="pref_view_theme_dark">Ciemny motyw (Beta)</string>
|
||||
<string name="pref_view_app_theme">Motyw apliakcji</string>
|
||||
<string name="pref_view_expand_grade">Rozwiń oceny</string>
|
||||
<string name="pref_view_grade_color_scheme">Schemat kolorów ocen</string>
|
||||
|
||||
|
@ -10,11 +10,10 @@
|
||||
<item>24 godzin</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="theme_entries">
|
||||
<item>Wyłączony</item>
|
||||
<item>Włączony</item>
|
||||
<item>Automatyczny</item>
|
||||
<item>Używaj ustawień systemowych</item>
|
||||
<string-array name="app_theme_entries">
|
||||
<item>Jasny</item>
|
||||
<item>Ciemny</item>
|
||||
<item>Czarny (AMOLED)</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="grade_modifier_entries">
|
||||
|
@ -40,4 +40,6 @@
|
||||
|
||||
<color name="divider">#cccccc</color>
|
||||
<color name="divider_inverse">#777777</color>
|
||||
|
||||
<color name="spinner_stroke">#61000000</color>
|
||||
</resources>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
|
||||
<string name="pref_key_start_menu">start_menu</string>
|
||||
<string name="pref_key_attendance_present">attendance_present</string>
|
||||
<string name="pref_key_theme">theme</string>
|
||||
<string name="pref_key_app_theme">app_theme</string>
|
||||
<string name="pref_key_grade_color_scheme">grade_color_scheme</string>
|
||||
<string name="pref_key_expand_grade">expand_grade</string>
|
||||
<string name="pref_key_grade_average_mode">grade_average_mode</string>
|
||||
|
@ -227,7 +227,7 @@
|
||||
<string name="pref_view_list">Default view</string>
|
||||
<string name="pref_view_grade_average_mode">Calculation of the end-of-year average</string>
|
||||
<string name="pref_view_present">Show presence in attendance</string>
|
||||
<string name="pref_view_theme_dark">Dark theme (Beta)</string>
|
||||
<string name="pref_view_app_theme">Application theme</string>
|
||||
<string name="pref_view_expand_grade">Expand grades</string>
|
||||
<string name="pref_view_grade_color_scheme">Grades color scheme</string>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<resources>
|
||||
|
||||
<style name="WulkanowyTheme" parent="@style/Theme.AppCompat.DayNight">
|
||||
<style name="WulkanowyTheme" parent="@style/Theme.MaterialComponents.Light.Bridge">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorPrimary</item>
|
||||
|
@ -13,17 +13,15 @@
|
||||
<item>3</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="theme_entries">
|
||||
<item>Off</item>
|
||||
<item>On</item>
|
||||
<item>Auto</item>
|
||||
<item>Follow system settings</item>
|
||||
<string-array name="app_theme_entries">
|
||||
<item>Light</item>
|
||||
<item>Dark</item>
|
||||
<item>Black (AMOLED)</item>
|
||||
</string-array>
|
||||
<string-array name="theme_values" translatable="false">
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>0</item>
|
||||
<item>-1</item>
|
||||
<string-array name="app_theme_values" translatable="false">
|
||||
<item>light</item>
|
||||
<item>dark</item>
|
||||
<item>black</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="services_interval_entries">
|
||||
|
@ -13,12 +13,12 @@
|
||||
android:title="@string/pref_view_list"
|
||||
app:iconSpaceReserved="false" />
|
||||
<ListPreference
|
||||
android:defaultValue="1"
|
||||
android:entries="@array/theme_entries"
|
||||
android:entryValues="@array/theme_values"
|
||||
android:key="theme"
|
||||
android:defaultValue="light"
|
||||
android:entries="@array/app_theme_entries"
|
||||
android:entryValues="@array/app_theme_values"
|
||||
android:key="@string/pref_key_app_theme"
|
||||
android:summary="%s"
|
||||
android:title="@string/pref_view_theme_dark"
|
||||
android:title="@string/pref_view_app_theme"
|
||||
app:iconSpaceReserved="false" />
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
|
Reference in New Issue
Block a user