Cherish: Edge Pulse Accent color [2/2]

This commit is contained in:
AnkitGourav
2020-02-08 13:32:56 +07:00
committed by Hưng Phan
parent c352716420
commit 2593741f28
2 changed files with 20 additions and 2 deletions

View File

@@ -640,5 +640,7 @@
<string name="ambient_notification_light_hide_aod_sumary">Hide other AoD content when bars are showing</string> <string name="ambient_notification_light_hide_aod_sumary">Hide other AoD content when bars are showing</string>
<string name="pulse_ambient_light_pulse_for_all_title">Pulse for all doze events</string> <string name="pulse_ambient_light_pulse_for_all_title">Pulse for all doze events</string>
<string name="pulse_ambient_light_pulse_for_all_summary">Pulses for any doze wake and not just notifications when enabled</string> <string name="pulse_ambient_light_pulse_for_all_summary">Pulses for any doze wake and not just notifications when enabled</string>
<string name="ambient_notification_light_accent_title">Accent color</string>
<string name="ambient_notification_light_accent_summary">Sync color with accent color</string>
</resources> </resources>

View File

@@ -40,11 +40,19 @@
<PreferenceCategory <PreferenceCategory
android:title="@string/edgelight_left" > android:title="@string/edgelight_left" >
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="ambient_notification_light_accent_left"
android:title="@string/ambient_notification_light_accent_title"
android:summary="@string/ambient_notification_light_accent_summary"
android:defaultValue="true"
android:disableDependentsState="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference <com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="pulse_ambient_light_auto_color_left" android:key="pulse_ambient_light_auto_color_left"
android:title="@string/pulse_ambient_light_auto_color_title" android:title="@string/pulse_ambient_light_auto_color_title"
android:summary="@string/pulse_ambient_light_auto_color_summary" android:summary="@string/pulse_ambient_light_auto_color_summary"
android:defaultValue="true" android:defaultValue="false"
android:dependency="ambient_notification_light_accent_left"
android:disableDependentsState="true" /> android:disableDependentsState="true" />
<net.margaritov.preference.colorpicker.ColorPickerPreference <net.margaritov.preference.colorpicker.ColorPickerPreference
@@ -67,11 +75,19 @@
<PreferenceCategory <PreferenceCategory
android:title="@string/edgelight_right" > android:title="@string/edgelight_right" >
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="ambient_notification_light_accent_right"
android:title="@string/ambient_notification_light_accent_title"
android:summary="@string/ambient_notification_light_accent_summary"
android:defaultValue="true"
android:disableDependentsState="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference <com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="pulse_ambient_light_auto_color_right" android:key="pulse_ambient_light_auto_color_right"
android:title="@string/pulse_ambient_light_auto_color_title" android:title="@string/pulse_ambient_light_auto_color_title"
android:summary="@string/pulse_ambient_light_auto_color_summary" android:summary="@string/pulse_ambient_light_auto_color_summary"
android:defaultValue="true" android:defaultValue="false"
android:dependency="ambient_notification_light_accent_right"
android:disableDependentsState="true" /> android:disableDependentsState="true" />
<net.margaritov.preference.colorpicker.ColorPickerPreference <net.margaritov.preference.colorpicker.ColorPickerPreference