Cherish: FOD pressed colors [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Joey Huab
2020-12-01 07:32:47 +09:00
committed by Hưng Phan
parent 71d8a3620c
commit df36803f09
3 changed files with 32 additions and 0 deletions

View File

@@ -960,4 +960,19 @@
<item>@string/daylight_header_provider</item>
<item>@string/file_header_provider</item>
</string-array>
<!-- FOD pressed color -->
<string-array name="fod_pressed_color_entries" translatable="false">
<item>@string/fod_pressed_color_white</item>
<item>@string/fod_pressed_color_cyan</item>
<item>@string/fod_pressed_color_green</item>
<item>@string/fod_pressed_color_yellow</item>
</string-array>
<string-array name="fod_pressed_color_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
</resources>

View File

@@ -908,4 +908,11 @@
<string name="file_header_select_title">Pick image from storage</string>
<string name="file_header_select_summary">Select an image from internal storage</string>
<string name="status_bar_custom_header_shadow_title">Darken image</string>
<!-- FOD pressed color -->
<string name="fod_pressed_color_title">Fingerprint pressed color</string>
<string name="fod_pressed_color_white">White</string>
<string name="fod_pressed_color_cyan">Cyan</string>
<string name="fod_pressed_color_green">Green</string>
<string name="fod_pressed_color_yellow">Yellow</string>
</resources>

View File

@@ -303,4 +303,14 @@
android:defaultValue="0"
android:dependency="fod_recognizing_animation" />
<!-- FOD pressed color -->
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="fod_color"
android:dialogTitle="@string/fod_pressed_color_title"
android:title="@string/fod_pressed_color_title"
android:summary="%s"
android:entries="@array/fod_pressed_color_entries"
android:entryValues="@array/fod_pressed_color_values"
android:defaultValue="@*android:integer/config_fod_pressed_color" />
</PreferenceScreen>