Cherish:add Settings SearchBar style (3/3)

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Ali B
2021-07-27 17:57:15 +07:00
committed by Hưng Phan
parent f87604f129
commit c784783b6c
3 changed files with 18 additions and 0 deletions

View 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="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z" />
</vector>

View File

@@ -1323,4 +1323,8 @@
<string name="qs_running_service_title">Running service icon</string>
<string name="qs_running_service_summary">Enable or disable running service icon</string>
<!-- SearchBar Style -->
<string name="search_bar_style_title">Use Android 12 Search Bar</string>
<string name="search_bar_style_summary">Toggle to use Android 12 style searchbar in Settings app. Settings app needs to be manually restarted for the change to take effect.</string>
</resources>

View File

@@ -97,6 +97,13 @@
<PreferenceCategory
android:key="system_theme_category"
android:title="@string/theme_type_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="use_new_searchbar"
android:icon="@drawable/ic_search"
android:title="@string/search_bar_style_title"
android:summary="@string/search_bar_style_summary"
android:defaultValue="false" />
<ListPreference
android:key="ui_style"