Cherish: Ambient Pulse Light: add layout style for top n bottom [2/2]

Co-Authored-By: bezke <1642612+bezke@users.noreply.github.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
SuperDroidBond
2021-10-04 11:13:55 +05:30
committed by Hưng Phan
parent adbe867abc
commit 2b68764181
3 changed files with 25 additions and 0 deletions

View File

@@ -331,6 +331,19 @@
<item>0</item>
<item>1</item>
</string-array>
<!-- Pulse Light Layout style -->
<string-array name="pulse_light_layout_style_entries" translatable="false">
<item>@string/pulse_light_both</item>
<item>@string/pulse_light_top_bottom</item>
<item>@string/pulse_light_left_right</item>
</string-array>
<string-array name="pulse_light_layout_style_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
<!-- Edge lightning color mode -->
<string-array name="ambient_notification_color_mode_entries" translatable="false">

View File

@@ -439,5 +439,9 @@
<string name="pulse_ambient_light_layout_solid">Solid</string>
<string name="pulse_ambient_light_layout_faded">Faded</string>
<string name="pulse_ambient_light_width_title">Light width</string>
<string name="pulse_light_layout_style_title">Light Layout Style</string>
<string name="pulse_light_both">All Four Sides</string>
<string name="pulse_light_top_bottom">Only Top-Bottom</string>
<string name="pulse_light_left_right">Only Left-Right</string>
</resources>

View File

@@ -85,6 +85,14 @@
android:summary="%s"
android:defaultValue="1" />
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="pulse_light_layout_style"
android:title="@string/pulse_light_layout_style_title"
android:entries="@array/pulse_light_layout_style_entries"
android:entryValues="@array/pulse_light_layout_style_values"
android:summary="%s"
android:defaultValue="0" />
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="pulse_ambient_light_width"
android:title="@string/pulse_ambient_light_width_title"