更新
This commit is contained in:
1 parent
55ac1f6070
commit
8325a17864
13 files changed
+384
-157
No files matched your search
@@ -2,59 +2,68 @@
|
||||
<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"
|
||||
<io.legato.kazusa.lib.prefs.PreferenceCategory
|
||||
android:key="themeCategory"
|
||||
android:title="@string/theme"
|
||||
app:allowDividerAbove="true"
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false"
|
||||
app:icons="@array/icons" />
|
||||
app:layout="@layout/view_preference_category">
|
||||
|
||||
<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.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.Preference
|
||||
android:key="fontScale"
|
||||
android:summary="@string/font_scale_summary"
|
||||
android:title="@string/font_scale"
|
||||
app:iconSpaceReserved="false" />
|
||||
<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.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.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="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.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>
|
||||
|
||||
<io.legato.kazusa.lib.prefs.PreferenceCategory
|
||||
android:key="dayThemeCategory"
|
||||
@@ -64,40 +73,6 @@
|
||||
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.ColorPreference
|
||||
android:defaultValue="@color/md_red_600"
|
||||
android:key="colorAccent"
|
||||
android:summary="@string/day_color_accent"
|
||||
android:title="@string/accent"
|
||||
app:cpv_dialogType="preset"
|
||||
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"
|
||||
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"
|
||||
app:allowDividerAbove="false"
|
||||
app:allowDividerBelow="false"
|
||||
app:cpv_dialogType="preset"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<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" />
|
||||
|
||||
@@ -11,27 +11,6 @@
|
||||
android:title="@string/book_source_manage"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:icon="@drawable/ic_cfg_txt"
|
||||
android:key="txtTocRuleManage"
|
||||
android:summary="@string/config_txt_toc_rule"
|
||||
android:title="@string/txt_toc_rule"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:icon="@drawable/ic_cfg_replace"
|
||||
android:key="replaceManage"
|
||||
android:summary="@string/replace_purify_desc"
|
||||
android:title="@string/replace_purify"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:icon="@drawable/ic_translate"
|
||||
android:key="dictRuleManage"
|
||||
android:summary="@string/config_dict_rule"
|
||||
android:title="@string/dict_rule"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legato.kazusa.lib.prefs.SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:icon="@drawable/ic_cfg_web"
|
||||
@@ -45,7 +24,8 @@
|
||||
android:title="@string/setting"
|
||||
app:allowDividerAbove="true"
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false">
|
||||
app:iconSpaceReserved="false"
|
||||
app:layout="@layout/view_preference_category">
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:icon="@drawable/ic_cfg_backup"
|
||||
@@ -71,6 +51,36 @@
|
||||
|
||||
</io.legato.kazusa.lib.prefs.PreferenceCategory>
|
||||
|
||||
<io.legato.kazusa.lib.prefs.PreferenceCategory
|
||||
android:title="规则"
|
||||
app:allowDividerAbove="true"
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false"
|
||||
app:layout="@layout/view_preference_category">
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:icon="@drawable/ic_cfg_txt"
|
||||
android:key="txtTocRuleManage"
|
||||
android:summary="@string/config_txt_toc_rule"
|
||||
android:title="@string/txt_toc_rule"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:icon="@drawable/ic_cfg_replace"
|
||||
android:key="replaceManage"
|
||||
android:summary="@string/replace_purify_desc"
|
||||
android:title="@string/replace_purify"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:icon="@drawable/ic_translate"
|
||||
android:key="dictRuleManage"
|
||||
android:summary="@string/config_dict_rule"
|
||||
android:title="@string/dict_rule"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
</io.legato.kazusa.lib.prefs.PreferenceCategory>
|
||||
|
||||
<io.legato.kazusa.lib.prefs.PreferenceCategory
|
||||
android:key="aboutCategory"
|
||||
android:title="@string/other"
|
||||
|
||||
Reference in new issue
Block a user