Lockscreen Visualizer: Add pulse magic [2/2]

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Change-Id: Ie5a47ee9e89d142389683dc7f2968e5d9b524599
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Pranav Vashi
2019-10-25 00:58:11 +05:30
committed by Hưng Phan
parent 912ae467c4
commit 7fc61d9041
4 changed files with 216 additions and 4 deletions

View File

@@ -569,8 +569,19 @@
<string name="lockscreen_media_art_options_title">Lockscreen media art</string>
<!-- Lock screen visualizer -->
<string name="enable_visualizer">Enable Visualizer</string>
<string name="lockscreen_visualizer_title">Visualizer</string>
<string name="lockscreen_visualizer_enable">Music Visualizer</string>
<string name="lockscreen_visualizer_enable_summary">Show visualizer bars while playing music</string>
<string name="lockscreen_autocolor_title">Automatic color</string>
<string name="lockscreen_autocolor_summary">Sync color with lockscreen background</string>
<string name="lockscreen_autocolor_lavalamp">Requires lava lamp disabled</string>
<string name="lockscreen_lavalamp_title">Lava lamp</string>
<string name="lockscreen_lavalamp_summary">Use a smooth lava lamp style color blend animation</string>
<string name="lockscreen_lavalamp_speed_title">Color blend interval</string>
<string name="lockscreen_solid_lines_category">Solid Lines</string>
<string name="lockscreen_solid_units_count_title">Lines count</string>
<string name="lockscreen_solid_fudge_factor_title">Sanity level</string>
<string name="lockscreen_solid_units_opacity_title">Lines opacity</string>
</resources>

View File

@@ -78,11 +78,11 @@
android:key="lockscreen_visualizer_options"
android:title="@string/lockscreen_visualizer_title" >
<com.cherish.settings.preferences.SecureSettingSwitchPreference
android:key="lockscreen_visualizer_enabled"
<Preference
android:key="lockscreen_visualizer"
android:fragment="com.cherish.settings.fragments.Visualizer"
android:title="@string/lockscreen_visualizer_enable"
android:summary="@string/lockscreen_visualizer_enable_summary"
android:defaultValue="false" />
android:summary="@string/lockscreen_visualizer_enable_summary" />
</PreferenceCategory>

View File

@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2018 Havoc-OS
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"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
android:title="@string/lockscreen_visualizer_enable">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_visualizer_autocolor"
android:title="@string/lockscreen_autocolor_title"
android:summary="@string/lockscreen_autocolor_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_lavalamp_enabled"
android:title="@string/lockscreen_lavalamp_title"
android:summary="@string/lockscreen_lavalamp_summary"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="lockscreen_lavalamp_speed"
android:title="@string/lockscreen_lavalamp_speed_title"
android:defaultValue="10000"
android:max="30000"
settings:min="200"
settings:interval="200"
settings:units="ms"
android:dependency="lockscreen_lavalamp_enabled"/>
<PreferenceCategory
android:key="lockscreen_solid_lines_category"
android:title="@string/lockscreen_solid_lines_category" >
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="lockscreen_solid_units_count"
android:title="@string/lockscreen_solid_units_count_title"
android:defaultValue="32"
android:max="128"
settings:min="16"
settings:interval="16"/>
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="lockscreen_solid_fudge_factor"
android:title="@string/lockscreen_solid_fudge_factor_title"
android:defaultValue="16"
android:max="32"
settings:min="2"/>
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="lockscreen_solid_units_opacity"
android:title="@string/lockscreen_solid_units_opacity_title"
android:defaultValue="140"
android:max="255"
settings:min="0"
settings:interval="5"/>
</PreferenceCategory>
</PreferenceScreen>