After r16, a commit to cleanup the KeyguardClockSwtich and unify it's structure was merged. Also, this added a new resource into the frameworks core, which allows us to overlay the custom clock font. So, we need to overlays now to customize this. This makes me really happy because it removes the ugly method that we were doing years ago. [nurkeinneid]: - adapt to our ThemeUtils - restore original copyright header - crdroid did nothing here Change-Id: I70590910144141a534b926f884e9f08e4e3af5bc Signed-off-by: NurKeinNeid <mralexman3000@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
149 lines
6.5 KiB
XML
149 lines
6.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2020 CherishOS
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<PreferenceScreen
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:title="@string/theme_title"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
<PreferenceCategory
|
|
android:key="settings_layout_category"
|
|
android:title="@string/settings_layout_category_title">
|
|
|
|
<com.cherish.settings.preferences.SystemSettingListPreference
|
|
android:key="settings_dashboard_style"
|
|
android:title="@string/settings_dashboard_style_title"
|
|
android:entries="@array/settings_dashboard_style_entries"
|
|
android:entryValues="@array/settings_dashboard_style_values"
|
|
android:summary="%s"
|
|
android:defaultValue="0" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="alt_settings_layout"
|
|
android:title="@string/settings_base_style_title"
|
|
android:summary="@string/settings_base_style_summary"
|
|
android:defaultValue="false" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="use_stock_layout"
|
|
android:title="@string/settings_home_style_title"
|
|
android:summary="@string/settings_home_style_summary"
|
|
android:defaultValue="false" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="disable_usercard"
|
|
android:title="@string/disable_usercard_title"
|
|
android:summary="@string/disable_usercard_summary"
|
|
android:defaultValue="false" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/notification_material_dismiss_button_title">
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="notification_material_dismiss"
|
|
android:title="@string/notification_material_dismiss_button_title"
|
|
android:summary="@string/notification_material_dismiss_button_summary"
|
|
android:defaultValue="false" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
|
android:key="notification_material_dismiss_style"
|
|
android:title="@string/clearall_style_title"
|
|
android:dependency="notification_material_dismiss"
|
|
android:defaultValue="0"
|
|
android:max="9"
|
|
settings:min="0" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
|
android:key="notification_material_dismiss_bgstyle"
|
|
android:title="@string/clearall_bgstyle_title"
|
|
android:dependency="notification_material_dismiss"
|
|
android:defaultValue="0"
|
|
android:max="4"
|
|
settings:min="0" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/theme_customization_category">
|
|
|
|
<Preference
|
|
android:key="dark_ui_mode"
|
|
android:title="@string/dark_ui_mode"
|
|
android:summary="@string/dark_ui_mode_summary"
|
|
android:fragment="com.android.settings.display.darkmode.DarkModeSettingsFragment"
|
|
settings:controller="com.android.settings.display.DarkUIPreferenceController" />
|
|
|
|
<Preference
|
|
android:key="android.theme.customization.style"
|
|
android:title="@string/theme_customization_ui_style_title"
|
|
android:summary="@string/theme_customization_ui_style_summary"
|
|
android:fragment="com.cherish.settings.fragments.ui.UIStyles"/>
|
|
|
|
<Preference
|
|
android:key="android.theme.customization.lockscreen_clock_font"
|
|
android:title="@string/theme_customization_lock_clock_title"
|
|
android:summary="@string/theme_customization_lock_clock_summary"
|
|
android:fragment="com.cherish.settings.fragments.ui.LockClockFonts"/>
|
|
|
|
<!-- QS style -->
|
|
<com.cherish.settings.preferences.SystemSettingListPreference
|
|
android:key="qs_panel_style"
|
|
android:title="@string/qs_styles_title"
|
|
android:dialogTitle="@string/qs_styles_title"
|
|
android:entries="@array/qs_styles_entries"
|
|
android:entryValues="@array/qs_styles_values"
|
|
android:summary="%s"
|
|
android:defaultValue="0" />
|
|
|
|
<!-- Font style -->
|
|
<Preference
|
|
android:key="android.theme.customization.font"
|
|
android:title="@string/theme_customization_font_title"
|
|
android:summary="@string/theme_customization_font_summary"
|
|
android:fragment="com.cherish.settings.fragments.ui.FontsPicker"/>
|
|
|
|
<!-- Icon pack -->
|
|
<Preference
|
|
android:key="android.theme.customization.icon_pack"
|
|
android:title="@string/theme_customization_icon_pack_title"
|
|
android:summary="@string/theme_customization_icon_pack_summary"
|
|
android:fragment="com.cherish.settings.fragments.ui.StatusbarIcons"/>
|
|
|
|
<!-- Adaptive icon shape -->
|
|
<Preference
|
|
android:key="android.theme.customization.adaptive_icon_shape"
|
|
android:title="@string/theme_customization_icon_shape_title"
|
|
android:summary="@string/theme_customization_icon_shape_summary"
|
|
android:fragment="com.cherish.settings.fragments.ui.IconShapes"/>
|
|
|
|
<!-- Signal icon style -->
|
|
<Preference
|
|
android:key="android.theme.customization.signal_icon"
|
|
android:title="@string/theme_customization_signal_icon_title"
|
|
android:summary="@string/theme_customization_signal_icon_summary"
|
|
android:fragment="com.cherish.settings.fragments.ui.SignalIcons"/>
|
|
|
|
<!-- Wifi icon style -->
|
|
<Preference
|
|
android:key="android.theme.customization.wifi_icon"
|
|
android:title="@string/theme_customization_wifi_icon_title"
|
|
android:summary="@string/theme_customization_wifi_icon_summary"
|
|
android:fragment="com.cherish.settings.fragments.ui.WifiIcons"/>
|
|
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|