summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorLuca Stefani <luca.stefani.ge1@gmail.com>2019-09-12 16:13:43 +0200
committerMichael Bestas <mkbestas@lineageos.org>2019-12-11 20:14:57 +0200
commit55fdd73d27525c61d077515fecc9f68621e05ad2 (patch)
tree7107c49d405df9c85c7bea7454b0cfa40b7c1a98 /res
parentc725f6eb67081599d68bc915b72604b350b86ad1 (diff)
downloadandroid_packages_apps_SettingsIntelligence-55fdd73d27525c61d077515fecc9f68621e05ad2.tar.gz
android_packages_apps_SettingsIntelligence-55fdd73d27525c61d077515fecc9f68621e05ad2.tar.bz2
android_packages_apps_SettingsIntelligence-55fdd73d27525c61d077515fecc9f68621e05ad2.zip
SettingsIntelligence: Match Settings style
* Also fixes dark style Change-Id: I42041fbaf754b149a85f22ac46b84f50830d0504
Diffstat (limited to 'res')
-rw-r--r--res/layout/search_panel.xml7
-rw-r--r--res/values-night/colors.xml19
-rw-r--r--res/values/colors.xml2
-rw-r--r--res/values/dimens.xml4
4 files changed, 25 insertions, 7 deletions
diff --git a/res/layout/search_panel.xml b/res/layout/search_panel.xml
index 5f621cd..82b1e11 100644
--- a/res/layout/search_panel.xml
+++ b/res/layout/search_panel.xml
@@ -25,16 +25,15 @@
android:id="@+id/search_bar_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@color/search_panel_background"
+ android:background="?android:attr/colorPrimary"
android:elevation="4dp">
<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="2dp"
- app:cardBackgroundColor="?android:attr/colorBackground"
- app:cardElevation="2dp">
+ app:cardCornerRadius="@*android:dimen/config_dialogCornerRadius"
+ app:cardElevation="3dp">
<Toolbar
android:id="@+id/search_toolbar"
android:layout_width="match_parent"
diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml
new file mode 100644
index 0000000..399913a
--- /dev/null
+++ b/res/values-night/colors.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <color name="search_panel_background">@*android:color/material_grey_800</color>
+</resources>
diff --git a/res/values/colors.xml b/res/values/colors.xml
index a2105f0..632c72d 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">#f2f2f2</color>
+ <color name="search_panel_background">@android:color/white</color>
</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 8a40eb6..9491650 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -26,8 +26,8 @@
<!-- The following two margins need to match, with the caveat that
the second should be negative. The second one ensures that the icons and text
align despite the additional padding caused by the search bar's card background. -->
- <dimen name="search_bar_margin">8dp</dimen>
- <dimen name="search_bar_negative_margin">-8dp</dimen>
+ <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>