mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 21:39:50 +02:00
Immersive Interface is now available on Android 8.0. Add ThemePreferenceFragment. Fix theme database.
This commit is contained in:
@@ -459,4 +459,7 @@
|
||||
<string name="cannot_get_storage">Cannot access the app storage</string>
|
||||
<string name="save_image_before_sharing">Saving the image. Please wait.</string>
|
||||
<string name="save_gif_before_sharing">Saving the gif. Please wait.</string>
|
||||
|
||||
<!-- TODO: Remove or change this placeholder text -->
|
||||
<string name="hello_blank_fragment">Hello blank fragment</string>
|
||||
</resources>
|
||||
|
@@ -2,19 +2,6 @@
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<ListPreference
|
||||
app:defaultValue="2"
|
||||
app:entryValues="@array/settings_theme_values"
|
||||
app:key="theme"
|
||||
app:icon="@drawable/ic_outline_color_lens_24px"
|
||||
app:title="@string/settings_theme_title"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<SwitchPreference
|
||||
app:defaultValue="false"
|
||||
app:key="amoled_dark"
|
||||
app:title="@string/settings_amoled_dark_title" />
|
||||
|
||||
<Preference
|
||||
app:title="@string/settings_font_size_title"
|
||||
app:icon="@drawable/ic_font_size_24dp"
|
||||
|
@@ -12,6 +12,11 @@
|
||||
app:title="@string/settings_interface_title"
|
||||
app:fragment="ml.docilealligator.infinityforreddit.Settings.InterfacePreferenceFragment" />
|
||||
|
||||
<Preference
|
||||
app:title="@string/settings_theme_title"
|
||||
app:icon="@drawable/ic_outline_color_lens_24dp"
|
||||
app:fragment="ml.docilealligator.infinityforreddit.Settings.ThemePreferenceFragment" />
|
||||
|
||||
<Preference
|
||||
app:icon="@drawable/ic_gesture_24dp"
|
||||
app:title="@string/settings_gestures_and_buttons_title"
|
||||
|
18
app/src/main/res/xml/theme_preferences.xml
Normal file
18
app/src/main/res/xml/theme_preferences.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<ListPreference
|
||||
app:defaultValue="2"
|
||||
app:entryValues="@array/settings_theme_values"
|
||||
app:key="theme"
|
||||
app:icon="@drawable/ic_outline_color_lens_24dp"
|
||||
app:title="@string/settings_theme_title"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<SwitchPreference
|
||||
app:defaultValue="false"
|
||||
app:key="amoled_dark"
|
||||
app:title="@string/settings_amoled_dark_title" />
|
||||
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user