Cherish:Add Lockscreen album art filter [2/2]

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Pranav Vashi
2019-04-19 14:59:07 +05:30
committed by Hưng Phan
parent 75ce7364b4
commit 5161803844
3 changed files with 33 additions and 0 deletions

View File

@@ -532,4 +532,21 @@
<item>1</item>
</string-array>
<!-- Lockscreen album art filter -->
<string-array name="lockscreen_albumart_filter_entries">
<item>@string/lockscreen_albumart_filter_none</item>
<item>@string/lockscreen_albumart_filter_grayscale</item>
<item>@string/lockscreen_albumart_filter_tint</item>
<item>@string/lockscreen_albumart_filter_blur</item>
<item>@string/lockscreen_albumart_filter_grayblur</item>
</string-array>
<string-array name="lockscreen_albumart_filter_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
</string-array>
</resources>

View File

@@ -626,4 +626,12 @@
<string name="media_art_title">Media cover art</string>
<string name="media_art_summary">Enable media cover art on the lockscreen</string>
<!-- Lockscreen album art filter -->
<string name="lockscreen_albumart_filter_title">Media cover art filter</string>
<string name="lockscreen_albumart_filter_none">None</string>
<string name="lockscreen_albumart_filter_grayscale">Grayscale</string>
<string name="lockscreen_albumart_filter_tint">Accent tinted</string>
<string name="lockscreen_albumart_filter_blur">Blur</string>
<string name="lockscreen_albumart_filter_grayblur">Grayscale and blurred</string>
</resources>

View File

@@ -57,6 +57,14 @@
android:summary="@string/media_art_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="lockscreen_albumart_filter"
android:title="@string/lockscreen_albumart_filter_title"
android:entries="@array/lockscreen_albumart_filter_entries"
android:entryValues="@array/lockscreen_albumart_filter_values"
android:dependency="lockscreen_media_metadata"
android:defaultValue="0" />
</PreferenceCategory>
<!-- <PreferenceCategory