From d8b45d674a0b6d2203f1667646615976d12bf487 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 bad7ba5..4f9549f 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -362,4 +362,19 @@ EEEE MM/dd @string/status_bar_date_format_custom + + + + @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 fa1a21b..ce18908 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -568,5 +568,21 @@ QS Footer Data usage Display data usage summary in quick settings footer + + + 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 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 64b82f9..f9c38d3 100644 --- a/res/xml/cherish_settings_lockscreen.xml +++ b/res/xml/cherish_settings_lockscreen.xml @@ -27,6 +27,12 @@ android:summary="@string/double_tap_sleep_lockscreen_summary" android:defaultValue="true" /> + +