Reorganized launcher settings

This commit is contained in:
ottoptj 2024-08-30 23:22:39 +03:00
commit e845ce7983
8 changed files with 401 additions and 283 deletions

View file

@ -1,19 +1,17 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<Preference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:key="defaultHome"
app:selectable="true"
app:title="Set Default Home" />
<PreferenceCategory
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:allowDividerAbove="false"
app:title="General UI">
app:title="Customization">
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -47,244 +45,21 @@
app:key="animationSpeed"
app:title="Animation Speed"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
<PreferenceCategory
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:allowDividerAbove="false"
app:title="Home Screen">
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="true"
android:title="Enable Clock"
app:key="clockEnabled" />
<ListPreference
app:defaultValue="left"
app:entries="@array/h_alignment_options"
app:entryValues="@array/h_alignment_values"
app:key="clockAlignment"
app:title="Clock Alignment"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="medium"
app:entries="@array/size_options"
app:entryValues="@array/size_values"
app:key="clockSize"
app:title="Clock Size"
app:useSimpleSummaryProvider="true" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="true"
android:title="Enable Date"
app:key="dateEnabled" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="medium"
app:entries="@array/size_options"
app:entryValues="@array/size_values"
app:key="dateSize"
app:title="Date Size"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="4"
app:entries="@array/shortcut_options"
app:entryValues="@array/shortcut_options"
app:key="shortcutNo"
app:title="Number of Shortcuts"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="left"
app:entries="@array/h_alignment_options"
app:entryValues="@array/h_alignment_values"
app:key="shortcutAlignment"
app:title="Shortcut Alignment"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="medium"
app:entries="@array/size_options"
app:entryValues="@array/size_values"
app:key="shortcutSize"
app:title="Shortcut Size"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="0.09"
app:entries="@array/shortcut_spacing_options"
app:entryValues="@array/shortcut_spacing_values"
app:key="shortcutWeight"
app:title="Shortcut Spacing"
app:useSimpleSummaryProvider="true" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="Battery Indicator"
app:dependency="dateEnabled"
app:key="batteryEnabled" />
</PreferenceCategory>
<PreferenceCategory
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:allowDividerAbove="false"
app:title="Weather">
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="Weather"
app:dependency="dateEnabled"
app:key="weatherEnabled" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="GPS Location"
app:dependency="weatherEnabled"
app:key="gpsLocation" />
<Preference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:dependency="weatherEnabled"
app:key="manualLocation"
app:key="homeSettings"
app:selectable="true"
app:title="Set Manual Location" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="celsius"
app:dependency="weatherEnabled"
app:entries="@array/temp_units"
app:entryValues="@array/unit_values"
app:key="tempUnits"
app:title="Units"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
<PreferenceCategory
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:allowDividerAbove="false"
app:title="Gestures">
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="true"
android:title="Clicking Time Opens Clock"
app:key="clockClick" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="true"
android:title="Clicking Date Opens Calendar"
app:key="dateClick" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="Swipe Left"
app:key="leftSwipe" />
app:summary="Configure the home screen"
app:title="Home Screen" />
<Preference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:dependency="leftSwipe"
app:key="leftSwipeApp"
app:key="appMenuSettings"
app:selectable="true"
app:title="Left Swipe App" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="Swipe Right"
app:key="rightSwipe" />
<Preference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:dependency="rightSwipe"
app:key="rightSwipeApp"
app:selectable="true"
app:title="Right Swipe App" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="Double Tap to Lock Screen"
app:key="doubleTap" />
app:summary="Configure the application menu"
app:title="App Menu" />
</PreferenceCategory>
<PreferenceCategory
app:allowDividerAbove="false"
app:title="Application Menu">
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="left"
app:entries="@array/h_alignment_options"
app:entryValues="@array/h_alignment_values"
app:key="appMenuAlignment"
app:title="App Menu Alignment"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="medium"
app:entries="@array/size_options"
app:entryValues="@array/size_values"
app:key="appMenuSize"
app:title="App Menu Size"
app:useSimpleSummaryProvider="true" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="true"
android:title="Enable Search"
app:key="searchEnabled" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="left"
app:entries="@array/h_alignment_options"
app:entryValues="@array/h_alignment_values"
app:key="searchAlignment"
app:title="Search Alignment"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="medium"
app:entries="@array/size_options"
app:entryValues="@array/size_values"
app:key="searchSize"
app:title="Search Size"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="20"
app:entries="@array/app_spacing_options"
app:entryValues="@array/app_spacing_values"
app:key="appSpacing"
app:title="App Spacing"
app:useSimpleSummaryProvider="true" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="Automatically Open Keyboard"
app:key="autoKeyboard" />
</PreferenceCategory>
<PreferenceCategory
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -295,6 +70,7 @@
android:layout_height="wrap_content"
app:key="hiddenApps"
app:selectable="true"
app:summary="Unhide Apps"
app:title="Manage Hidden Apps" />
</PreferenceCategory>
<PreferenceCategory