LibreTube/app/src/main/res/xml/appearance_settings.xml

102 lines
3.4 KiB
XML

<?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">
<PreferenceCategory app:title="@string/appearance">
<ListPreference
android:icon="@drawable/ic_theme"
app:defaultValue="A"
app:entries="@array/themes"
app:entryValues="@array/themesValue"
app:key="theme_toggle"
app:title="@string/app_theme"
app:useSimpleSummaryProvider="true" />
<SwitchPreferenceCompat
android:icon="@drawable/ic_invert_colors"
android:summary="@string/pure_theme_summary"
app:defaultValue="false"
app:key="pure_theme"
app:title="@string/pure_theme" />
<ListPreference
android:icon="@drawable/ic_color"
app:defaultValue="purple"
app:entries="@array/accents"
app:entryValues="@array/accentsValue"
app:key="accent_color"
app:title="@string/color_accent"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:icon="@drawable/ic_frame"
app:defaultValue="MainActivity"
app:entries="@array/icons"
app:entryValues="@array/iconsValue"
app:key="icon_change"
app:title="@string/app_icon"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/app_behavior">
<ListPreference
android:icon="@drawable/ic_home"
app:defaultValue="home"
app:entries="@array/tabs"
app:entryValues="@array/tabsValue"
app:key="default_tab"
app:title="@string/defaultTab"
app:useSimpleSummaryProvider="true" />
<SwitchPreferenceCompat
android:icon="@drawable/ic_trending"
app:defaultValue="false"
app:key="hide_trending_page"
app:title="@string/hideTrendingPage"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:icon="@drawable/ic_label"
app:defaultValue="always"
app:entries="@array/labelVisibility"
app:entryValues="@array/labelVisibilityValues"
app:key="label_visibility"
app:title="@string/navLabelVisibility"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:icon="@drawable/ic_grid"
app:defaultValue="@integer/grid_items"
app:entries="@array/grid"
app:entryValues="@array/grid"
app:key="grid"
app:title="@string/grid"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/player">
<SwitchPreferenceCompat
android:icon="@drawable/ic_caption"
app:key="system_caption_style"
app:title="@string/system_caption_style"
app:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory>
<SwitchPreferenceCompat
android:defaultValue="true"
android:icon="@drawable/ic_list"
app:key="related_streams_toggle"
app:summary="@string/related_streams_summary"
app:title="@string/related_streams" />
</PreferenceCategory>
</PreferenceScreen>