From c54c2eb6c2a11db69fe17e6448c06094ef3c2498 Mon Sep 17 00:00:00 2001 From: jhonboy121 Date: Wed, 7 Sep 2022 22:10:55 +0700 Subject: [PATCH] Cherish:add edge light customizations[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 | 15 ++++ res/values/cherish_strings.xml | 16 +++++ res/xml/cherish_settings_edge_light.xml | 54 ++++++++++++++ res/xml/cherish_settings_lockscreen.xml | 6 ++ .../settings/fragments/EdgeLightSettings.java | 71 +++++++++++++++++++ 5 files changed, 162 insertions(+) create mode 100644 res/xml/cherish_settings_edge_light.xml create mode 100644 src/com/cherish/settings/fragments/EdgeLightSettings.java diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index cbc8ae5..e19ddcf 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -519,4 +519,19 @@ 600000 1800000 + + + + @string/accent_color + @string/notification_color + @string/wallpaper_color + @string/custom_color + + + + 0 + 1 + 2 + 3 + diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 92492ef..98c10ef 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -713,6 +713,22 @@ Replace heads-up notification with slim and less invasive version of redesigned ticker Use app colored background Replace reTicker background color using notification app main color + + + Edge light + Enable Edge Light + Display an animation along the edges of the screen when pulsing + Always trigger on pulse + Whether to show edge light whenever ambient display is shown and not just for notifications + Repeat animation + Repeat until timeout + Show only once + Edge light color mode + Accent color (Default) + Notification color + Wallpaper color + Custom color + Custom color Power/reboot menu opacity diff --git a/res/xml/cherish_settings_edge_light.xml b/res/xml/cherish_settings_edge_light.xml new file mode 100644 index 0000000..7870a93 --- /dev/null +++ b/res/xml/cherish_settings_edge_light.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/xml/cherish_settings_lockscreen.xml b/res/xml/cherish_settings_lockscreen.xml index bf93c07..d285473 100644 --- a/res/xml/cherish_settings_lockscreen.xml +++ b/res/xml/cherish_settings_lockscreen.xml @@ -33,6 +33,12 @@ android:entries="@array/torch_power_button_gesture_entries" android:entryValues="@array/torch_power_button_gesture_values" /> + +