Cherish:introduce WeatherView Bg Selection [2/2]

Change-Id: I3fd39def305c5dc8afa01cd0600e6aa5ede4da26
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
SuperDroidBond
2020-08-15 23:16:51 +05:30
committed by Hưng Phan
parent e9f1e46eb2
commit 7f3e49bcd8
3 changed files with 37 additions and 4 deletions

View File

@@ -905,4 +905,29 @@
<item>34</item> <item>34</item>
<item>35</item> <item>35</item>
</string-array> </string-array>
<!-- Lockscreen Weather styles -->
<string-array name="lockscreen_weather_bg_entries" translatable="false">
<item>@string/lockscreen_date_selection_default</item>
<item>@string/lockscreen_date_selection_str_box</item>
<item>@string/lockscreen_date_selection_str_round</item>
<item>@string/lockscreen_date_selection_qbeta_style</item>
<item>@string/lockscreen_date_selection_str_accent</item>
<item>@string/lockscreen_date_selection_str_accent_transparent</item>
<item>@string/lockscreen_date_selection_str_gradient</item>
<item>@string/lockscreen_date_selection_str_border_accent</item>
<item>@string/lockscreen_date_selection_str_border_gradient</item>
</string-array>
<string-array name="lockscreen_weather_bg_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
</string-array>
</resources> </resources>

View File

@@ -499,6 +499,7 @@
<string name="lock_item_right">Right Aligned</string> <string name="lock_item_right">Right Aligned</string>
<string name="lockscreen_item_padding_title">Lockscreen Items Padding</string> <string name="lockscreen_item_padding_title">Lockscreen Items Padding</string>
<string name="lockscreen_weather_alignment_title">LS Weather Alignment</string> <string name="lockscreen_weather_alignment_title">LS Weather Alignment</string>
<string name="lockscreen_weather_selection_title">WeatherView Background Style</string>
<!-- Data disabled icon --> <!-- Data disabled icon -->
<string name="data_disabled_icon_title">Data disabled icon</string> <string name="data_disabled_icon_title">Data disabled icon</string>

View File

@@ -55,9 +55,8 @@
android:dialogTitle="@string/lock_weather_city_dialog_title" android:dialogTitle="@string/lock_weather_city_dialog_title"
android:entries="@array/sb_clock_fonts_entries" android:entries="@array/sb_clock_fonts_entries"
android:entryValues="@array/sb_clock_fonts_values" android:entryValues="@array/sb_clock_fonts_values"
android:summary="%s" android:summary="@string/lock_weather_city_font_summary"
android:dependency="lockscreen_weather_show_city" android:dependency="lockscreen_weather_show_city"
android:defaultValue="27"
android:persistent="false" /> android:persistent="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference <com.cherish.settings.preferences.SystemSettingSwitchPreference
@@ -66,14 +65,22 @@
android:summary="@string/lockscreen_weather_show_temp_summary" android:summary="@string/lockscreen_weather_show_temp_summary"
android:defaultValue="true" /> android:defaultValue="true" />
<com.cherish.settings.preferences.SecureSettingListPreference
android:key="lockscreen_weather_selection"
android:title="@string/lockscreen_weather_selection_title"
android:dialogTitle="@string/lockscreen_weather_selection_title"
android:entries="@array/lockscreen_weather_bg_entries"
android:entryValues="@array/lockscreen_weather_bg_values"
android:summary="%s"
android:defaultValue="0" />
<ListPreference <ListPreference
android:key="lock_weather_temp_fonts" android:key="lock_weather_temp_fonts"
android:title="@string/lock_weather_temp_font_title" android:title="@string/lock_weather_temp_font_title"
android:dialogTitle="@string/lock_weather_temp_font_dialog_title" android:dialogTitle="@string/lock_weather_temp_font_dialog_title"
android:entries="@array/sb_clock_fonts_entries" android:entries="@array/sb_clock_fonts_entries"
android:entryValues="@array/sb_clock_fonts_values" android:entryValues="@array/sb_clock_fonts_values"
android:summary="%s" android:summary="@string/lock_weather_temp_font_summary"
android:dependency="lockscreen_weather_show_temp" android:dependency="lockscreen_weather_show_temp"
android:defaultValue="27"
android:persistent="false" /> android:persistent="false" />
</PreferenceScreen> </PreferenceScreen>