idoybh (DerpFest) edits: *Added switches dependencies *Removed settings we don't need *Reorganiazed, categorized and made strings make sense Signed-off-by: Ido Ben-Hur <idoybh2@gmail.com> Signed-off-by: AnkitGourav <Ankitgourav035@gmail.com>
88 lines
3.9 KiB
XML
88 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2020 CherishOS
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<PreferenceScreen
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:title="@string/pulse_ambient_light_title"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="ambient_notification_light_enabled"
|
|
android:title="@string/ambient_notification_light_enabled_title"
|
|
android:summary="@string/ambient_notification_light_enabled_sumary"
|
|
android:defaultValue="false" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="ambient_notification_light_hide_aod"
|
|
android:title="@string/ambient_notification_light_hide_aod_title"
|
|
android:summary="@string/ambient_notification_light_hide_aod_sumary"
|
|
android:dependency="ambient_notification_light_enabled"
|
|
android:defaultValue="false" />
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/edgelight_left" >
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="pulse_ambient_light_auto_color_left"
|
|
android:title="@string/pulse_ambient_light_auto_color_title"
|
|
android:summary="@string/pulse_ambient_light_auto_color_summary"
|
|
android:defaultValue="true"
|
|
android:disableDependentsState="true" />
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="pulse_ambient_light_color_left"
|
|
android:title="@string/pulse_ambient_light_color_title"
|
|
android:persistent="false"
|
|
android:dependency="pulse_ambient_light_auto_color_left"
|
|
settings:defaultColorValue="0xFF3980FF" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
|
android:key="pulse_ambient_light_left_duration"
|
|
android:title="@string/pulse_ambient_light_duration"
|
|
android:defaultValue="2000"
|
|
android:max="10000"
|
|
settings:min="500"
|
|
settings:interval="250"
|
|
settings:units="ms" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/edgelight_right" >
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="pulse_ambient_light_auto_color_right"
|
|
android:title="@string/pulse_ambient_light_auto_color_title"
|
|
android:summary="@string/pulse_ambient_light_auto_color_summary"
|
|
android:defaultValue="true"
|
|
android:disableDependentsState="true" />
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="pulse_ambient_light_color_right"
|
|
android:title="@string/pulse_ambient_light_color_title"
|
|
android:persistent="false"
|
|
android:dependency="pulse_ambient_light_auto_color_right"
|
|
settings:defaultColorValue="0xFF3980FF" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
|
android:key="pulse_ambient_light_right_duration"
|
|
android:title="@string/pulse_ambient_light_duration"
|
|
android:defaultValue="2000"
|
|
android:max="10000"
|
|
settings:min="500"
|
|
settings:interval="250"
|
|
settings:units="ms" />
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|