This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
android_packages_apps_Cherish/res/xml/cherish_settings_theme.xml
El Dainosor 0bb076c36a Cherish: Add support for UI Styles
Not a great previewer but for now it'll do the work

[nurkeinneid]:
- adapt to our ThemeUtils
- restore original copyright header - crdroid did nothing here

Change-Id: I432578a4b3c652d7ad3e00a93e11bfb3e199b4a5
Signed-off-by: NurKeinNeid <mralexman3000@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2023-03-20 02:18:21 +07:00

116 lines
5.0 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/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"/>
<!-- 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>