|
|
@@ -2,102 +2,77 @@
|
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.ThemeModePreference
|
|
|
- android:defaultValue="0"
|
|
|
- android:entries="@array/theme_mode"
|
|
|
- android:entryValues="@array/theme_mode_v"
|
|
|
- android:key="themeMode"
|
|
|
- android:title="@string/theme_mode"
|
|
|
- android:summary="切换浅色/深色/跟随系统" />
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.NameListPreference
|
|
|
- android:key="app_theme"
|
|
|
- android:title="应用主题"
|
|
|
- android:summary="喵喵喵"
|
|
|
- android:entries="@array/themes_item"
|
|
|
- android:entryValues="@array/themes_value"
|
|
|
- android:defaultValue="0" />
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.IconListPreference
|
|
|
- android:defaultValue="ic_launcher"
|
|
|
- android:entries="@array/icon_names"
|
|
|
- android:entryValues="@array/icons"
|
|
|
- android:key="launcherIcon"
|
|
|
- android:summary="@string/change_icon_summary"
|
|
|
- android:title="@string/change_icon"
|
|
|
- app:iconSpaceReserved="false"
|
|
|
- app:icons="@array/icons" />
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.Preference
|
|
|
- android:key="welcomeStyle"
|
|
|
- android:title="@string/welcome_style"
|
|
|
- android:summary="@string/welcome_style_summary" />
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.Preference
|
|
|
- android:key="fontScale"
|
|
|
- android:summary="@string/font_scale_summary"
|
|
|
- android:title="@string/font_scale"
|
|
|
- app:iconSpaceReserved="false" />
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.Preference
|
|
|
- android:key="coverConfig"
|
|
|
- android:title="@string/cover_config"
|
|
|
- android:summary="@string/cover_config_summary"
|
|
|
- app:allowDividerAbove="false"
|
|
|
- app:allowDividerBelow="false"
|
|
|
- app:iconSpaceReserved="false" />
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.Preference
|
|
|
- android:key="themeList"
|
|
|
- android:summary="@string/theme_list_summary"
|
|
|
- android:title="@string/theme_list"
|
|
|
- app:allowDividerAbove="false"
|
|
|
- app:allowDividerBelow="false"
|
|
|
- app:iconSpaceReserved="false" />
|
|
|
-
|
|
|
<io.legato.kazusa.lib.prefs.PreferenceCategory
|
|
|
- android:key="dayThemeCategory"
|
|
|
- android:title="@string/day"
|
|
|
+ android:key="themeCategory"
|
|
|
+ android:title="@string/theme"
|
|
|
app:allowDividerAbove="true"
|
|
|
app:allowDividerBelow="false"
|
|
|
app:iconSpaceReserved="false"
|
|
|
app:layout="@layout/view_preference_category">
|
|
|
|
|
|
- <io.legato.kazusa.lib.prefs.ColorPreference
|
|
|
- android:defaultValue="@color/md_brown_500"
|
|
|
- android:key="colorPrimary"
|
|
|
- android:summary="@string/day_color_primary"
|
|
|
- android:title="@string/primary"
|
|
|
- app:cpv_dialogType="preset"
|
|
|
- app:iconSpaceReserved="false" />
|
|
|
+ <io.legato.kazusa.lib.prefs.ThemeModePreference
|
|
|
+ android:defaultValue="0"
|
|
|
+ android:entries="@array/theme_mode"
|
|
|
+ android:entryValues="@array/theme_mode_v"
|
|
|
+ android:key="themeMode"
|
|
|
+ android:title="@string/theme_mode"
|
|
|
+ android:summary="切换浅色/深色/跟随系统" />
|
|
|
+
|
|
|
+ <io.legato.kazusa.lib.prefs.ThemeCardPreference
|
|
|
+ android:key="app_theme"
|
|
|
+ android:title="应用主题"
|
|
|
+ android:summary="喵喵喵"
|
|
|
+ android:entries="@array/themes_item"
|
|
|
+ android:entryValues="@array/themes_value"
|
|
|
+ android:defaultValue="0" />
|
|
|
+
|
|
|
+ <io.legato.kazusa.lib.prefs.IconListPreference
|
|
|
+ android:defaultValue="ic_launcher"
|
|
|
+ android:entries="@array/icon_names"
|
|
|
+ android:entryValues="@array/icons"
|
|
|
+ android:key="launcherIcon"
|
|
|
+ android:summary="@string/change_icon_summary"
|
|
|
+ android:title="@string/change_icon"
|
|
|
+ app:iconSpaceReserved="false"
|
|
|
+ app:icons="@array/icons" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.prefs.ColorPreference
|
|
|
- android:defaultValue="@color/md_red_600"
|
|
|
- android:key="colorAccent"
|
|
|
- android:summary="@string/day_color_accent"
|
|
|
- android:title="@string/accent"
|
|
|
- app:cpv_dialogType="preset"
|
|
|
+ <io.legato.kazusa.lib.prefs.Preference
|
|
|
+ android:key="welcomeStyle"
|
|
|
+ android:title="@string/welcome_style"
|
|
|
+ android:summary="@string/welcome_style_summary" />
|
|
|
+
|
|
|
+ <io.legato.kazusa.lib.prefs.Preference
|
|
|
+ android:key="fontScale"
|
|
|
+ android:summary="@string/font_scale_summary"
|
|
|
+ android:title="@string/font_scale"
|
|
|
app:iconSpaceReserved="false" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.prefs.ColorPreference
|
|
|
- android:defaultValue="@color/md_grey_100"
|
|
|
- android:key="colorBackground"
|
|
|
- android:summary="@string/day_background_color"
|
|
|
- android:title="@string/background_color"
|
|
|
- app:cpv_dialogType="preset"
|
|
|
+ <io.legato.kazusa.lib.prefs.Preference
|
|
|
+ android:key="coverConfig"
|
|
|
+ android:title="@string/cover_config"
|
|
|
+ android:summary="@string/cover_config_summary"
|
|
|
+ app:allowDividerAbove="false"
|
|
|
+ app:allowDividerBelow="false"
|
|
|
app:iconSpaceReserved="false" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.prefs.ColorPreference
|
|
|
- android:defaultValue="@color/md_grey_200"
|
|
|
- android:key="colorBottomBackground"
|
|
|
- android:summary="@string/day_navbar_color"
|
|
|
- android:title="@string/navbar_color"
|
|
|
+ <io.legato.kazusa.lib.prefs.Preference
|
|
|
+ android:key="themeList"
|
|
|
+ android:summary="@string/theme_list_summary"
|
|
|
+ android:title="@string/theme_list"
|
|
|
app:allowDividerAbove="false"
|
|
|
app:allowDividerBelow="false"
|
|
|
- app:cpv_dialogType="preset"
|
|
|
app:iconSpaceReserved="false" />
|
|
|
|
|
|
+ </io.legato.kazusa.lib.prefs.PreferenceCategory>
|
|
|
+
|
|
|
+ <io.legato.kazusa.lib.prefs.PreferenceCategory
|
|
|
+ android:key="dayThemeCategory"
|
|
|
+ android:title="@string/day"
|
|
|
+ app:allowDividerAbove="true"
|
|
|
+ app:allowDividerBelow="false"
|
|
|
+ app:iconSpaceReserved="false"
|
|
|
+ app:layout="@layout/view_preference_category">
|
|
|
+
|
|
|
<io.legato.kazusa.lib.prefs.Preference
|
|
|
android:key="backgroundImage"
|
|
|
android:title="@string/background_image" />
|
|
|
@@ -120,38 +95,6 @@
|
|
|
app:iconSpaceReserved="false"
|
|
|
app:layout="@layout/view_preference_category">
|
|
|
|
|
|
- <io.legato.kazusa.lib.prefs.ColorPreference
|
|
|
- android:defaultValue="@color/md_blue_grey_600"
|
|
|
- android:key="colorPrimaryNight"
|
|
|
- android:summary="@string/night_primary"
|
|
|
- android:title="@string/primary"
|
|
|
- app:cpv_dialogType="preset"
|
|
|
- app:iconSpaceReserved="false" />
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.ColorPreference
|
|
|
- android:defaultValue="@color/md_deep_orange_800"
|
|
|
- android:key="colorAccentNight"
|
|
|
- android:summary="@string/night_accent"
|
|
|
- android:title="@string/accent"
|
|
|
- app:cpv_dialogType="preset"
|
|
|
- app:iconSpaceReserved="false" />
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.ColorPreference
|
|
|
- android:defaultValue="@color/md_grey_900"
|
|
|
- android:key="colorBackgroundNight"
|
|
|
- android:summary="@string/night_background_color"
|
|
|
- android:title="@string/background_color"
|
|
|
- app:cpv_dialogType="preset"
|
|
|
- app:iconSpaceReserved="false" />
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.prefs.ColorPreference
|
|
|
- android:defaultValue="@color/md_grey_850"
|
|
|
- android:key="colorBottomBackgroundNight"
|
|
|
- android:summary="@string/night_navbar_color"
|
|
|
- android:title="@string/navbar_color"
|
|
|
- app:cpv_dialogType="preset"
|
|
|
- app:iconSpaceReserved="false" />
|
|
|
-
|
|
|
<io.legato.kazusa.lib.prefs.Preference
|
|
|
android:key="backgroundImageNight"
|
|
|
android:title="@string/background_image" />
|