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

Signed-off-by: SuperDroidBond <superdroidbond@yahoo.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 c9bb0bb72d
commit cdb4dbd267
3 changed files with 27 additions and 0 deletions

View File

@@ -593,4 +593,17 @@
<item>300</item>
<item>600</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>
</resources>

View File

@@ -800,4 +800,10 @@
<!-- Edge Light -->
<string name="pulse_ambient_light_width_title">Light width</string>
<!-- Pulse Light Layout Style -->
<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

@@ -59,6 +59,14 @@
android:key="ambient_notification_light_color"
android:title="@string/pulse_ambient_light_color_title"
android:defaultValue="0xFFFFFFFF" />
<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.SystemSettingListPreference
android:key="ambient_light_layout"