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_quicksettings.xml
Ali B 75cf940441 Cherish: Add QS System Info
Change-Id: I8575808c00a43bde146e6208e0ce9c9320721dcb
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2022-05-16 08:09:49 +07:00

129 lines
5.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 CherishOS Project
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/quicksettings_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:title="@string/qs_title">
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="qs_transparency"
android:title="@string/qs_transparency_title"
android:summary="@string/qs_transparency_summary"
android:defaultValue="10"
settings:interval="1"
android:max="10"
android:min="1" />
<!-- QS date -->
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="show_qs_date"
android:title="@string/qs_date_title"
android:summary="@string/qs_date_summary"
android:defaultValue="true" />
<!-- QS footer text toggle -->
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="qs_footer_text_show"
android:title="@string/qs_footer_text_show_title"
android:defaultValue="false" />
<!-- QS footer text string -->
<com.cherish.settings.preferences.SystemSettingEditTextPreference
android:key="qs_footer_text_string"
android:title="@string/qs_footer_text_string_title"
android:summary="@string/qs_footer_text_string_summary"
android:dependency="qs_footer_text_show"
android:defaultValue="TheKeepLove" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="qs_show_battery_estimate"
android:title="@string/qs_show_battery_estimate_title"
android:summary="@string/qs_show_battery_estimate_summary"
android:defaultValue="true"/>
<com.cherish.settings.preferences.SecureSettingSwitchPreference
android:key="enable_camera_privacy_indicator"
android:title="@string/mic_camera_privacy_indicator_title"
android:summary="@string/mic_camera_privacy_indicator_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SecureSettingSwitchPreference
android:key="enable_location_privacy_indicator"
android:title="@string/location_privacy_indicator_title"
android:summary="@string/location_privacy_indicator_summary"
android:defaultValue="false" />
<com.cherish.settings.preferences.SecureSettingSwitchPreference
android:key="quick_settings_vibrate"
android:title="@string/quick_settings_vibrate_title"
android:summary="@string/quick_settings_vibrate_summary"
android:defaultValue="false"/>
<ListPreference
android:key="status_bar_quick_qs_pulldown"
android:title="@string/status_bar_quick_qs_pulldown"
android:entries="@array/quick_pulldown_entries"
android:entryValues="@array/quick_pulldown_values"
android:defaultValue="0" />
</PreferenceCategory>
<PreferenceCategory
android:key="qs_header_category"
android:title="@string/qs_header_category_title">
<com.cherish.settings.preferences.SystemSettingIntListPreference
android:key="qs_system_info"
android:title="@string/qs_system_info_title"
android:entries="@array/qs_system_info_entries"
android:entryValues="@array/qs_system_info_values"
android:defaultValue="0"
android:summary="%s" />
</PreferenceCategory>
<PreferenceCategory
android:key="quick_settings_brighness_category"
android:title="@string/qs_brightness_slider_category">
<!-- Brightness slider -->
<com.cherish.settings.preferences.SecureSettingListPreference
android:key="qs_show_brightness_slider"
android:title="@string/qs_show_brightness_slider_title"
android:entries="@array/qs_show_brightness_slider_entries"
android:entryValues="@array/qs_show_brightness_slider_values"
android:defaultValue="1" />
<com.cherish.settings.preferences.SecureSettingListPreference
android:key="qs_brightness_slider_position"
android:title="@string/qs_brightness_slider_position_title"
android:entries="@array/qs_brightness_slider_position_entries"
android:entryValues="@array/qs_brightness_slider_position_values"
android:defaultValue="0" />
<com.cherish.settings.preferences.SecureSettingSwitchPreference
android:key="qs_show_auto_brightness"
android:title="@string/qs_show_auto_brightness_title"
android:summary="@string/qs_show_auto_brightness_summary"
android:defaultValue="true" />
</PreferenceCategory>
</PreferenceScreen>