Cherish: Introduce UI Style Picker [2/3]
@ZeNiXxX: * Allow changing UI shape * Default, Round(M+L), Rectangle and NoCornerRadius Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
7
res/drawable/ic_ui.xml
Normal file
7
res/drawable/ic_ui.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12C21,11.5 20.96,11 20.87,10.5C20.6,10 20,10 20,10H18V9C18,8 17,8 17,8H15V7C15,6 14,6 14,6H13V4C13,3 12,3 12,3M9.5,6A1.5,1.5 0 0,1 11,7.5A1.5,1.5 0 0,1 9.5,9A1.5,1.5 0 0,1 8,7.5A1.5,1.5 0 0,1 9.5,6M6.5,10A1.5,1.5 0 0,1 8,11.5A1.5,1.5 0 0,1 6.5,13A1.5,1.5 0 0,1 5,11.5A1.5,1.5 0 0,1 6.5,10M11.5,11A1.5,1.5 0 0,1 13,12.5A1.5,1.5 0 0,1 11.5,14A1.5,1.5 0 0,1 10,12.5A1.5,1.5 0 0,1 11.5,11M16.5,13A1.5,1.5 0 0,1 18,14.5A1.5,1.5 0 0,1 16.5,16H16.5A1.5,1.5 0 0,1 15,14.5H15A1.5,1.5 0 0,1 16.5,13M11,16A1.5,1.5 0 0,1 12.5,17.5A1.5,1.5 0 0,1 11,19A1.5,1.5 0 0,1 9.5,17.5A1.5,1.5 0 0,1 11,16Z" />
|
||||
</vector>
|
||||
@@ -713,4 +713,21 @@
|
||||
<item>4</item>
|
||||
<item>5</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Notification Background styles -->
|
||||
<string-array name="ui_style_selector_entries" translatable="false">
|
||||
<item>@string/ui_style_default</item>
|
||||
<item>@string/ui_style_no_corner_radius</item>
|
||||
<item>@string/ui_style_rectangle</item>
|
||||
<item>@string/ui_style_round_large</item>
|
||||
<item>@string/ui_style_round_medium</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="ui_style_selector_values" translatable="false">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>4</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -783,4 +783,12 @@
|
||||
<string name="brightness_slider_style_memeround">Meme round</string>
|
||||
<string name="brightness_slider_style_memeroundstroke">Meme round stroke</string>
|
||||
<string name="brightness_slider_style_memestroke">Meme stroke</string>
|
||||
|
||||
<!-- GUI styles -->
|
||||
<string name="ui_style_title">UI Style</string>
|
||||
<string name="ui_style_default">Default</string>
|
||||
<string name="ui_style_no_corner_radius">No Corner Radius</string>
|
||||
<string name="ui_style_rectangle">Rectangle</string>
|
||||
<string name="ui_style_round_large">Round Large</string>
|
||||
<string name="ui_style_round_medium">Round Medium</string>
|
||||
</resources>
|
||||
|
||||
@@ -40,6 +40,14 @@
|
||||
android:persistent="false"
|
||||
android:entries="@array/switch_style_entries"
|
||||
android:entryValues="@array/switch_style_values" />
|
||||
|
||||
<ListPreference
|
||||
android:key="ui_style"
|
||||
android:icon="@drawable/ic_ui"
|
||||
android:title="@string/ui_style_title"
|
||||
android:entries="@array/ui_style_selector_entries"
|
||||
android:entryValues="@array/ui_style_selector_values"
|
||||
android:persistent="false" />
|
||||
|
||||
<ListPreference
|
||||
android:key="qs_tile_style"
|
||||
|
||||
Reference in New Issue
Block a user