summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2021-10-05 19:17:46 -0700
committeralk3pInjection <webmaster@raspii.tech>2022-01-22 16:30:50 +0800
commitd8f8acaf654faa622de5cf7f010579fb4d35ba9a (patch)
tree037fd14a0b186c46b1f5e0486aaeabd4ae7af25e
parenta9c5ffa9026c977a9e5d21bfd08feadea20eb233 (diff)
SettingsIntelligence: Style search bar to match new Settings UIsugisawa
- Rounded pill shape - Surface background colors - No shadow - Font size - Height Change-Id: I24d4725f3d759ea633768640995de16f9bdf2c55
-rw-r--r--res/layout/search_panel.xml11
-rw-r--r--res/values-night/colors.xml2
-rw-r--r--res/values/colors.xml2
-rw-r--r--res/values/dimens.xml7
4 files changed, 11 insertions, 11 deletions
diff --git a/res/layout/search_panel.xml b/res/layout/search_panel.xml
index 82b1e11..18c48bf 100644
--- a/res/layout/search_panel.xml
+++ b/res/layout/search_panel.xml
@@ -25,20 +25,19 @@
android:id="@+id/search_bar_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="?android:attr/colorPrimary"
- android:elevation="4dp">
+ android:background="?android:attr/colorPrimary">
<androidx.cardview.widget.CardView
android:id="@+id/search_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/search_bar_margin"
- app:cardCornerRadius="@*android:dimen/config_dialogCornerRadius"
- app:cardElevation="3dp">
+ app:cardCornerRadius="@dimen/search_bar_corner_radius"
+ app:cardElevation="0dp">
<Toolbar
android:id="@+id/search_toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/search_bar_height"
- android:background="?android:attr/selectableItemBackground"
+ android:background="@color/search_panel_background"
android:contentInsetStart="0dp"
android:contentInsetStartWithNavigation="0dp"
android:theme="?android:attr/actionBarTheme">
@@ -104,4 +103,4 @@
<include layout="@layout/search_feedback"/>
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml
index 399913a..8c91c44 100644
--- a/res/values-night/colors.xml
+++ b/res/values-night/colors.xml
@@ -15,5 +15,5 @@
-->
<resources>
- <color name="search_panel_background">@*android:color/material_grey_800</color>
+ <color name="search_panel_background">@*android:color/surface_variant_dark</color>
</resources>
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 632c72d..b2f02b8 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -18,5 +18,5 @@
<resources>
<color name="launcher_background_color">#ff008577</color>
- <color name="search_panel_background">@android:color/white</color>
+ <color name="search_panel_background">@*android:color/surface_highlight_light</color>
</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 9491650..0fa9e37 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -29,12 +29,13 @@
<dimen name="search_bar_margin">16dp</dimen>
<dimen name="search_bar_negative_margin">-16dp</dimen>
- <dimen name="search_bar_height">48dp</dimen>
- <dimen name="search_bar_text_size">16dp</dimen>
+ <dimen name="search_bar_height">52dp</dimen>
+ <dimen name="search_bar_text_size">20sp</dimen>
+ <dimen name="search_bar_corner_radius">28dp</dimen>
<!-- Dashboard image tile size -->
<dimen name="dashboard_tile_image_size">24dp</dimen>
<!-- Dashboard tile image margin start / end -->
<dimen name="dashboard_tile_image_margin">24dp</dimen>
-</resources> \ No newline at end of file
+</resources>