From 06dad1e1f6ebe65261e3b8740221790b29eac937 Mon Sep 17 00:00:00 2001 From: 703joko <703joko@gmail.com> Date: Fri, 10 Sep 2021 03:14:15 -0700 Subject: [PATCH] Cherish: Introduce Battery Landscape | Left Battery Text [2/2] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hưng Phan --- res/values/cherish_arrays.xml | 4 ++++ res/values/cherish_strings.xml | 10 +++++--- .../cherish_settings_statusbar_battery.xml | 6 +++++ .../fragments/StatusbarBatterySettings.java | 23 +++++++++++++++++-- 4 files changed, 38 insertions(+), 5 deletions(-) diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index 99e9499..fe4f180 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -867,6 +867,8 @@ @string/status_bar_battery_style_icon_portrait + @string/status_bar_battery_style_icon_rlandscape + @string/status_bar_battery_style_icon_landscape @string/status_bar_battery_style_circle @string/status_bar_battery_style_dotted_circle @string/status_bar_battery_style_filled_circle @@ -881,6 +883,8 @@ 3 4 5 + 6 + 7 diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 62eed4c..168ffdf 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -836,17 +836,21 @@ Configure icon and text styles for the statusbar battery indicator Battery style Icon portrait - Circle - Dotted circle + Icon landscape R + Icon landscape L + Circle (Dotted) + Circle Filled circle Text Hidden Battery percentage Hidden Inside the icon - Next to the icon + Outside the icon QS battery percentage Show battery percentage in the QS header instead of battery estimate + Left battery text + Put the battery text on left of battery icon QS Media player Show media player in QS.\nRequires a SystemUI restart diff --git a/res/xml/cherish_settings_statusbar_battery.xml b/res/xml/cherish_settings_statusbar_battery.xml index 7443ec5..88fbc62 100644 --- a/res/xml/cherish_settings_statusbar_battery.xml +++ b/res/xml/cherish_settings_statusbar_battery.xml @@ -29,6 +29,12 @@ android:entryValues="@array/status_bar_battery_style_values" android:defaultValue="0" /> + +