From 982be4fac752fabbf42bf0c9b5717c4b03d756f6 Mon Sep 17 00:00:00 2001 From: Igor Talankin Date: Sat, 8 Jan 2022 16:31:55 +0500 Subject: [PATCH] Remove SearchOverlay background --- .../com/italankin/lnch/feature/home/search/SearchOverlay.java | 2 -- launcher/src/main/res/layout/widget_search_overlay.xml | 3 +-- launcher/src/main/res/values-night/themes.xml | 1 - launcher/src/main/res/values/attrs.xml | 3 --- launcher/src/main/res/values/themes.xml | 1 - 5 files changed, 1 insertion(+), 9 deletions(-) diff --git a/launcher/src/main/java/com/italankin/lnch/feature/home/search/SearchOverlay.java b/launcher/src/main/java/com/italankin/lnch/feature/home/search/SearchOverlay.java index 6cec411a..4643c1e6 100644 --- a/launcher/src/main/java/com/italankin/lnch/feature/home/search/SearchOverlay.java +++ b/launcher/src/main/java/com/italankin/lnch/feature/home/search/SearchOverlay.java @@ -18,7 +18,6 @@ import com.italankin.lnch.model.repository.search.SearchRepository; import com.italankin.lnch.model.repository.search.match.DescriptorMatch; import com.italankin.lnch.model.repository.search.match.Match; -import com.italankin.lnch.util.ResUtils; import com.italankin.lnch.util.ViewUtils; import com.italankin.lnch.util.adapterdelegate.CompositeAdapter; import com.italankin.lnch.util.widget.TextWatcherAdapter; @@ -65,7 +64,6 @@ public SearchOverlay(@NonNull Context context, @Nullable AttributeSet attrs) { setFocusable(true); setFocusableInTouchMode(true); - setBackgroundColor(ResUtils.resolveColor(context, R.attr.colorSearchBarBackground)); setMinimumHeight(getResources().getDimensionPixelSize(R.dimen.search_bar_size)); inflate(context, R.layout.widget_search_overlay, this); diff --git a/launcher/src/main/res/layout/widget_search_overlay.xml b/launcher/src/main/res/layout/widget_search_overlay.xml index cee1bf57..2517bdde 100644 --- a/launcher/src/main/res/layout/widget_search_overlay.xml +++ b/launcher/src/main/res/layout/widget_search_overlay.xml @@ -4,7 +4,6 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:background="?colorSearchBarBackground" tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout"> #181818 #212121 #60000000 - #1fff #6000 ?colorPrimaryDark diff --git a/launcher/src/main/res/values/attrs.xml b/launcher/src/main/res/values/attrs.xml index f4679b3b..d5bd008e 100644 --- a/launcher/src/main/res/values/attrs.xml +++ b/launcher/src/main/res/values/attrs.xml @@ -30,9 +30,6 @@ - - - diff --git a/launcher/src/main/res/values/themes.xml b/launcher/src/main/res/values/themes.xml index 4f70e8c5..a43fa4a9 100644 --- a/launcher/src/main/res/values/themes.xml +++ b/launcher/src/main/res/values/themes.xml @@ -18,7 +18,6 @@ #ddd #a0a0a0 #60000000 - #1000 #afff ?colorPrimaryDark