Skip to content

Commit

Permalink
Remove SearchOverlay background
Browse files Browse the repository at this point in the history
  • Loading branch information
italankin committed Jan 8, 2022
1 parent c3993fa commit 982be4f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions launcher/src/main/res/layout/widget_search_overlay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
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">

<AutoCompleteTextView
android:id="@+id/search_edit_text"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center_vertical"
android:background="#2000"
android:background="#0000"
android:completionThreshold="1"
android:hint="@string/hint_search"
android:imeOptions="actionGo|flagNoExtractUi"
Expand Down
1 change: 0 additions & 1 deletion launcher/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<item name="colorFolderBackground">#181818</item>
<item name="colorFolderTitleBackground">#212121</item>
<item name="colorItemShadowDefault">#60000000</item>
<item name="colorSearchBarBackground">#1fff</item>
<item name="colorSearchResultBackground">#6000</item>
<item name="colorEditPanelBackground">?colorPrimaryDark</item>

Expand Down
3 changes: 0 additions & 3 deletions launcher/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
<!-- default item shadow -->
<attr name="colorItemShadowDefault" format="color|reference" />

<!-- background color of the search bar -->
<attr name="colorSearchBarBackground" format="color|reference" />

<!-- color of the search results overlay -->
<attr name="colorSearchResultBackground" format="color|reference" />

Expand Down
1 change: 0 additions & 1 deletion launcher/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<item name="colorFolderBackground">#ddd</item>
<item name="colorFolderTitleBackground">#a0a0a0</item>
<item name="colorItemShadowDefault">#60000000</item>
<item name="colorSearchBarBackground">#1000</item>
<item name="colorSearchResultBackground">#afff</item>
<item name="colorEditPanelBackground">?colorPrimaryDark</item>

Expand Down

0 comments on commit 982be4f

Please sign in to comment.