From d84bdb1d936f67cfb277b57a071dd8e979e82834 Mon Sep 17 00:00:00 2001 From: Gabriel Luong Date: Sat, 8 Jan 2022 23:22:22 -0500 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/23121 - Replace @drawble/ic_search with @drawable/mozac_ic_search --- .../fenix/search/awesomebar/AwesomeBarView.kt | 4 ++-- app/src/main/res/drawable/ic_search.xml | 13 ------------- app/src/main/res/layout/fragment_search_dialog.xml | 2 +- app/src/main/res/layout/tab_group_item.xml | 2 +- app/src/main/res/menu/languages_list.xml | 2 +- app/src/main/res/menu/login_list.xml | 2 +- .../mozilla/fenix/search/toolbar/ToolbarViewTest.kt | 2 +- 7 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_search.xml diff --git a/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarView.kt b/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarView.kt index 55816fee4a..d209661b44 100644 --- a/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarView.kt +++ b/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarView.kt @@ -148,7 +148,7 @@ class AwesomeBarView( ) ) - val searchBitmap = getDrawable(activity, R.drawable.ic_search)!!.apply { + val searchBitmap = getDrawable(activity, R.drawable.mozac_ic_search)!!.apply { colorFilter = createBlendModeColorFilterCompat(primaryTextColor, SRC_IN) }.toBitmap() @@ -335,7 +335,7 @@ class AwesomeBarView( val components = activity.components val primaryTextColor = activity.getColorFromAttr(R.attr.primaryText) - val searchBitmap = getDrawable(activity, R.drawable.ic_search)!!.apply { + val searchBitmap = getDrawable(activity, R.drawable.mozac_ic_search)!!.apply { colorFilter = createBlendModeColorFilterCompat(primaryTextColor, SRC_IN) }.toBitmap() diff --git a/app/src/main/res/drawable/ic_search.xml b/app/src/main/res/drawable/ic_search.xml deleted file mode 100644 index dd401903ff..0000000000 --- a/app/src/main/res/drawable/ic_search.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/app/src/main/res/layout/fragment_search_dialog.xml b/app/src/main/res/layout/fragment_search_dialog.xml index d4747c157d..6f510572ab 100644 --- a/app/src/main/res/layout/fragment_search_dialog.xml +++ b/app/src/main/res/layout/fragment_search_dialog.xml @@ -186,7 +186,7 @@ style="@style/search_pill" android:textOff="@string/search_engine_button" android:textOn="@string/search_engine_button" - app:drawableStartCompat="@drawable/ic_search" + app:drawableStartCompat="@drawable/mozac_ic_search" app:layout_constraintBottom_toBottomOf="@id/pill_wrapper" app:layout_constraintStart_toEndOf="@id/qr_scan_button" app:layout_constraintTop_toTopOf="@id/pill_wrapper" /> diff --git a/app/src/main/res/layout/tab_group_item.xml b/app/src/main/res/layout/tab_group_item.xml index 752db3c651..34740d2ef2 100644 --- a/app/src/main/res/layout/tab_group_item.xml +++ b/app/src/main/res/layout/tab_group_item.xml @@ -18,7 +18,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:tint="@color/primary_text_normal_theme" - app:srcCompat="@drawable/ic_search" /> + app:srcCompat="@drawable/mozac_ic_search" />