Cherish: Ambient edge pulse animation [2/2]

This commit is contained in:
AnkitGourav
2020-02-08 13:36:05 +07:00
committed by Hưng Phan
parent 09f0e4473c
commit e6bf39eef8
3 changed files with 28 additions and 0 deletions

View File

@@ -563,4 +563,15 @@
<item>@string/daylight_header_provider</item> <item>@string/daylight_header_provider</item>
<item>@string/file_header_provider</item> <item>@string/file_header_provider</item>
</string-array> </string-array>
<!-- Edge light Animation -->
<string-array name="pulse_ambient_light_anim_entries">
<item>@string/pulse_ambient_light_anim_restart</item>
<item>@string/pulse_ambient_light_anim_reverse</item>
</string-array>
<string-array name="pulse_ambient_light_anim_values" translatable="false">
<item>0</item>
<item>1</item>
</string-array>
</resources> </resources>

View File

@@ -644,5 +644,8 @@
<string name="ambient_notification_light_accent_summary">Sync color with accent color</string> <string name="ambient_notification_light_accent_summary">Sync color with accent color</string>
<string name="pulse_ambient_light_pulse_for_all_repeat_title">Repeat edge lighting</string> <string name="pulse_ambient_light_pulse_for_all_repeat_title">Repeat edge lighting</string>
<string name="pulse_ambient_light_pulse_for_all_repeat_summary">Repeat edge lighting animation on doze wake</string> <string name="pulse_ambient_light_pulse_for_all_repeat_summary">Repeat edge lighting animation on doze wake</string>
<string name="pulse_ambient_light_repeat_mode_title">Edge Light Animation</string>
<string name="pulse_ambient_light_anim_restart">Restart</string>
<string name="pulse_ambient_light_anim_reverse">Reverse</string>
</resources> </resources>

View File

@@ -69,6 +69,13 @@
android:dependency="pulse_ambient_light_auto_color_left" android:dependency="pulse_ambient_light_auto_color_left"
settings:defaultColorValue="0xFF3980FF" /> settings:defaultColorValue="0xFF3980FF" />
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="pulse_ambient_light_repeat_mode_left"
android:title="@string/pulse_ambient_light_repeat_mode_title"
android:entries="@array/pulse_ambient_light_anim_entries"
android:entryValues="@array/pulse_ambient_light_anim_values"
android:defaultValue="0" />
<com.cherish.settings.preferences.SystemSettingSeekBarPreference <com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="pulse_ambient_light_left_duration" android:key="pulse_ambient_light_left_duration"
android:title="@string/pulse_ambient_light_duration" android:title="@string/pulse_ambient_light_duration"
@@ -104,6 +111,13 @@
android:dependency="pulse_ambient_light_auto_color_right" android:dependency="pulse_ambient_light_auto_color_right"
settings:defaultColorValue="0xFF3980FF" /> settings:defaultColorValue="0xFF3980FF" />
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="pulse_ambient_light_repeat_mode_right"
android:title="@string/pulse_ambient_light_repeat_mode_title"
android:entries="@array/pulse_ambient_light_anim_entries"
android:entryValues="@array/pulse_ambient_light_anim_values"
android:defaultValue="0" />
<com.cherish.settings.preferences.SystemSettingSeekBarPreference <com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="pulse_ambient_light_right_duration" android:key="pulse_ambient_light_right_duration"
android:title="@string/pulse_ambient_light_duration" android:title="@string/pulse_ambient_light_duration"