Cherish:Color coded battery indication [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
spkal01
2022-04-27 17:28:06 +03:00
committed by Hưng Phan
parent a0929c9482
commit 3cd6053ffe
2 changed files with 11 additions and 1 deletions

View File

@@ -788,4 +788,8 @@
<!-- Laboratory - Ignore window secure -->
<string name="laboratory_ignore_window_secure_title">Ignore window secure flags</string>
<string name="laboratory_ignore_window_secure_summary">This removes the screenshots and screenrecords limits for all applications. Normally, special applications are replaced with black areas in records. This can be convenient in some cases but may lead to privacy leaks. After changing this toggle, you may need to restart applications for the change to take effect.</string>
<!-- Colorful battery icon -->
<string name="battery_level_colors_title">Toggle colorful battery icon</string>
<string name="battery_level_colors_summary">Each battery level drop is color coded</string>
</resources>

View File

@@ -18,6 +18,12 @@
android:title="@string/battery_style_category_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="battery_level_colors"
android:title="@string/battery_level_colors_title"
android:summary="@string/battery_level_colors_summary"
android:defaultValue="false" />
<ListPreference
android:key="status_bar_battery_style"
android:dialogTitle="@string/status_bar_battery_style_title"