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/battery_settings.xml
703joko 0dbc9b4130 Cherish : Introduce Battery Landscape | Left Battery Text [2/2]
Signed-off-by: 703joko <703joko@gmail.com>
Signed-off-by: Genkzsz11 <genkzsz11@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2021-12-26 21:54:52 +07:00

111 lines
4.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2018 AospExtended ROM 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
android:title="@string/battery_settings_title"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:key="battery_style_category"
android:title="@string/battery_style_category_title" >
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="do_left_battery_text"
android:title="@string/left_battery_text_title"
android:summary="@string/left_battery_text_summary"
android:defaultValue="false"/>
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="status_bar_battery_style"
android:title="@string/status_bar_battery_style_title"
android:summary="%s"
android:dialogTitle="@string/status_bar_battery_style_title"
android:entries="@array/status_bar_battery_style_entries"
android:entryValues="@array/status_bar_battery_style_values"
android:defaultValue="0" />
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="status_bar_show_battery_percent"
android:title="@string/battery_percent_title"
android:dialogTitle="@string/battery_percent_title"
android:entries="@array/battery_percent_entries"
android:entryValues="@array/battery_percent_values"
android:defaultValue="0" />
</PreferenceCategory>
<PreferenceCategory
android:key="battery_bar_category"
android:title="@string/battery_bar_title">
<ListPreference
android:key="statusbar_battery_bar_no_navbar_list"
android:title="@string/battery_bar_no_navbar"
android:entries="@array/battery_bar_no_navbar_entries"
android:entryValues="@array/battery_bar_no_navbar_values" />
<net.margaritov.preference.colorpicker.ColorPickerPreference
android:key="statusbar_battery_bar_color"
android:title="@string/battery_bar_color"
android:defaultValue="0xffffff" />
<net.margaritov.preference.colorpicker.ColorPickerPreference
android:key="statusbar_battery_bar_battery_low_color"
android:title="@string/battery_bar_battery_low_color"
android:defaultValue="0xffffff" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="statusbar_battery_bar_enable_charging_color"
android:title="@string/battery_bar_use_charging_color"
android:defaultValue="true" />
<net.margaritov.preference.colorpicker.ColorPickerPreference
android:key="statusbar_battery_bar_charging_color"
android:title="@string/battery_bar_charging_color"
android:defaultValue="0xffffff"
android:dependency="statusbar_battery_bar_enable_charging_color" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="statusbar_battery_bar_blend_color"
android:title="@string/battery_bar_blend_color_title"
android:summary="@string/battery_bar_blend_color_summary"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="statusbar_battery_bar_blend_color_reverse"
android:title="@string/battery_bar_blend_color_reverse_title"
android:summaryOn="@string/battery_bar_blend_color_reverse_summary_on"
android:summaryOff="@string/battery_bar_blend_color_reverse_summary_off"
android:dependency="statusbar_battery_bar_blend_color"
android:defaultValue="false" />
<ListPreference
android:key="statusbar_battery_bar_style"
android:title="@string/battery_bar_style_title"
android:entries="@array/battery_bar_style_entries"
android:entryValues="@array/battery_bar_style_values" />
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="statusbar_battery_bar_thickness"
android:title="@string/battery_bar_thickness_title"
android:max="4"
settings:min="1"
settings:units="dp"
android:persistent="false" />
<SwitchPreference
android:key="statusbar_battery_bar_animate"
android:title="@string/battery_bar_animate_title" />
</PreferenceCategory>
</PreferenceScreen>