Cherish:Extend NavBar Pulse to LockScreen [3/3]

This commit is contained in:
neobuddy89
2020-08-30 07:46:59 +07:00
committed by Hưng Phan
parent a42f967428
commit bf615af6ad
3 changed files with 141 additions and 61 deletions

View File

@@ -1,13 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012-2014 The TeamEos Project
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.
@@ -19,126 +16,130 @@
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
android:title="@string/pulse_settings" >
<com.cherish.settings.preferences.SystemSettingSwitchPreference
<SwitchPreference
android:key="navbar_pulse_enabled"
android:title="@string/show_pulse_title"
android:summary="@string/show_pulse_summary"
android:defaultValue="false" />
android:title="@string/show_navbar_pulse_title"
android:summary="@string/show_navbar_pulse_summary"/>
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="navbar_pulse_render_style"
<SwitchPreference
android:key="lockscreen_pulse_enabled"
android:title="@string/show_lockscreen_pulse_title"
android:summary="@string/show_lockscreen_pulse_summary"/>
<SwitchPreference
android:key="ambient_pulse_enabled"
android:title="@string/show_ambient_pulse_title"
android:summary="@string/show_ambient_pulse_summary"/>
<com.cherish.settings.preferences.SecureSettingListPreference
android:key="pulse_render_style"
android:title="@string/pulse_render_mode_title"
android:entries="@array/pulse_render_mode_entries"
android:entryValues="@array/pulse_render_mode_values"
android:defaultValue="0"
android:dependency="navbar_pulse_enabled" />
android:defaultValue="0" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
<com.cherish.settings.preferences.SecureSettingSwitchPreference
android:key="pulse_smoothing_enabled"
android:title="@string/smoothing_enabled_title"
android:summary="@string/smoothing_enabled_summary"
android:defaultValue="false"
android:dependency="navbar_pulse_enabled" />
android:defaultValue="false" />
<PreferenceCategory
android:key="pulse_color_category"
android:title="@string/pulse_color"
android:dependency="navbar_pulse_enabled">
android:title="@string/pulse_color">
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="navbar_pulse_color_type"
<com.cherish.settings.preferences.SecureSettingListPreference
android:key="pulse_color_mode"
android:title="@string/pulse_color_mode"
android:entries="@array/pulse_color_mode_entries"
android:entryValues="@array/pulse_color_mode_values"
android:defaultValue="1"/>
<com.cherish.settings.colorpicker.ColorPickerPreference
android:key="navbar_pulse_color_user"
<com.cherish.settings.preferences.ColorSelectPreference
android:key="pulse_color_user"
android:title="@string/pulse_color_chooser"
android:persistent="false" />
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
android:key="navbar_pulse_lavalamp_speed"
<com.cherish.settings.preferences.SimpleCustomSecureSeekBarPreference
android:key="pulse_lavalamp_speed"
android:title="@string/lavamp_speed_title"
android:max="30000"
android:defaultValue="10000"
settings:min="200"
android:min="200"
settings:interval="200"
settings:units="ms"/>
</PreferenceCategory>
<PreferenceCategory
android:key="pulse_fading_bars_category"
android:title="@string/pulse_legacy_mode_advanced_category"
android:dependency="navbar_pulse_enabled">
android:title="@string/pulse_legacy_mode_advanced_category">
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
<com.cherish.settings.preferences.SimpleCustomSecureSeekBarPreference
android:key="pulse_custom_dimen"
android:title="@string/pulse_custom_dimen"
android:max="30"
android:defaultValue="14"
settings:min="1"
android:min="1"
settings:units="dp"/>
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
<com.cherish.settings.preferences.SimpleCustomSecureSeekBarPreference
android:key="pulse_custom_div"
android:title="@string/pulse_custom_div"
android:max="44"
android:defaultValue="16"
settings:min="2"
android:min="2"
settings:interval="2"
settings:units="dp"/>
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
<com.cherish.settings.preferences.SimpleCustomSecureSeekBarPreference
android:key="pulse_filled_block_size"
android:title="@string/pulse_filled_block_size"
android:max="8"
android:defaultValue="4"
settings:min="4"
android:min="4"
settings:units="dp"/>
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
<com.cherish.settings.preferences.SimpleCustomSecureSeekBarPreference
android:key="pulse_empty_block_size"
android:title="@string/pulse_empty_block_size"
android:max="4"
android:defaultValue="1"
settings:min="0"
android:min="0"
settings:units="dp"/>
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
<com.cherish.settings.preferences.SimpleCustomSecureSeekBarPreference
android:key="pulse_custom_fudge_factor"
android:title="@string/pulse_custom_fudge_factor"
android:max="6"
android:defaultValue="4"
settings:min="2"/>
android:min="2"/>
</PreferenceCategory>
<PreferenceCategory
android:key="pulse_2"
android:title="@string/pulse_solid_dimen_category"
android:dependency="navbar_pulse_enabled">
android:title="@string/pulse_solid_dimen_category">
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
<com.cherish.settings.preferences.SimpleCustomSecureSeekBarPreference
android:key="pulse_solid_units_opacity"
android:title="@string/pulse_solid_units_opacity"
android:max="255"
android:defaultValue="200"
settings:min="0"/>
android:min="0"/>
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
<com.cherish.settings.preferences.SimpleCustomSecureSeekBarPreference
android:key="pulse_solid_units_count"
android:title="@string/pulse_solid_units_count"
android:max="128"
android:defaultValue="64"
settings:interval="16"
settings:min="32"/>
android:min="32"/>
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
<com.cherish.settings.preferences.SimpleCustomSecureSeekBarPreference
android:key="pulse_solid_fudge_factor"
android:title="@string/pulse_custom_fudge_factor"
android:max="7"
android:defaultValue="5"
settings:min="2"/>
android:min="2"/>
</PreferenceCategory>
</PreferenceScreen>
</PreferenceScreen>