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 9b91ffae21
commit f2a5a5399c
3 changed files with 33 additions and 0 deletions

View File

@@ -410,5 +410,22 @@
<item>7</item>
<item>5</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

@@ -700,5 +700,13 @@
<string name="lockscreen_media_category">Lock screen media</string>
<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

@@ -68,6 +68,14 @@
android:title="@string/media_art_title"
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>