Cherish:Battery styles: Add battery styles and customizations [2/2]
ezio84: Battery styles: cleanup [2/2] neobuddy89: Simplify code and add battery percentage when charging neobuddy89: Battery Styles: Add customization for QS [2/2] neobuddy89: Allow setting battery percent view on left [2/2] DennySPb: Add back big dotted and big circle battery indicator palaych: Add a summary to battery styles and customizations Co-authored-by: ezio84 <brabus84@gmail.com> Co-authored-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -21,6 +21,12 @@
|
||||
android:summary="@string/network_traffic_summary"
|
||||
android:fragment="com.cherish.settings.fragments.NetworkTrafficSettings" />
|
||||
|
||||
<Preference
|
||||
android:key="battery_settings"
|
||||
android:fragment="com.cherish.settings.fragments.StatusBarBattery"
|
||||
android:title="@string/battery_style_title"
|
||||
android:summary="@string/battery_style_summary" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/status_bar_icons_category_title">
|
||||
|
||||
|
||||
68
res/xml/statusbar_battery.xml
Normal file
68
res/xml/statusbar_battery.xml
Normal file
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2017-2019 The Dirty Unicorns 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/battery_style_category_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<!-- Status bar battery customizations -->
|
||||
<PreferenceCategory
|
||||
android:title="@string/status_bar_battery_category_title">
|
||||
|
||||
<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/status_bar_battery_percent_title"
|
||||
android:dialogTitle="@string/status_bar_battery_percent_title"
|
||||
android:entries="@array/status_bar_battery_percent_entries"
|
||||
android:entryValues="@array/status_bar_battery_percent_values"
|
||||
android:defaultValue="0" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="status_bar_battery_text_charging"
|
||||
android:title="@string/status_bar_battery_text_charging_title"
|
||||
android:summary="@string/status_bar_battery_text_charging_summary"
|
||||
android:defaultValue="true" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<!-- QS panel battery customizations -->
|
||||
<PreferenceCategory
|
||||
android:title="@string/qs_battery_category_title">
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="qs_battery_style"
|
||||
android:title="@string/status_bar_battery_style_title"
|
||||
android:entries="@array/qs_battery_style_entries"
|
||||
android:entryValues="@array/qs_battery_style_values"
|
||||
android:defaultValue="-1" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="qs_show_battery_percent"
|
||||
android:title="@string/qs_battery_percent_title"
|
||||
android:entries="@array/status_bar_battery_percent_entries"
|
||||
android:entryValues="@array/status_bar_battery_percent_values"
|
||||
android:defaultValue="2" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user