diff --git a/app/src/main/java/org/mozilla/fenix/components/toolbar/DefaultToolbarMenu.kt b/app/src/main/java/org/mozilla/fenix/components/toolbar/DefaultToolbarMenu.kt index a06df2f2cf5d..9b36994071ea 100644 --- a/app/src/main/java/org/mozilla/fenix/components/toolbar/DefaultToolbarMenu.kt +++ b/app/src/main/java/org/mozilla/fenix/components/toolbar/DefaultToolbarMenu.kt @@ -186,7 +186,7 @@ open class DefaultToolbarMenu( val installToHomescreen = BrowserMenuHighlightableItem( label = context.getString(R.string.browser_menu_install_on_homescreen), - startImageResource = R.drawable.ic_add_to_homescreen, + startImageResource = R.drawable.mozac_ic_add_to_home_screen, iconTintColorResource = primaryTextColor(), highlight = BrowserMenuHighlight.LowPriority( label = context.getString(R.string.browser_menu_install_on_homescreen), @@ -277,7 +277,7 @@ open class DefaultToolbarMenu( val addToHomeScreenItem = BrowserMenuImageText( label = context.getString(R.string.browser_menu_add_to_homescreen), - imageResource = R.drawable.ic_add_to_homescreen, + imageResource = R.drawable.mozac_ic_add_to_home_screen, iconTintColorResource = primaryTextColor(), isCollapsingMenuLimit = true ) { @@ -302,7 +302,7 @@ open class DefaultToolbarMenu( val settingsItem = BrowserMenuHighlightableItem( label = context.getString(R.string.browser_menu_settings), - startImageResource = R.drawable.ic_settings, + startImageResource = R.drawable.mozac_ic_settings, iconTintColorResource = if (hasAccountProblem) ThemeManager.resolveAttribute(R.attr.syncDisconnected, context) else primaryTextColor(), diff --git a/app/src/main/java/org/mozilla/fenix/home/HomeMenu.kt b/app/src/main/java/org/mozilla/fenix/home/HomeMenu.kt index 108cc216b954..8af4f3cdc44f 100644 --- a/app/src/main/java/org/mozilla/fenix/home/HomeMenu.kt +++ b/app/src/main/java/org/mozilla/fenix/home/HomeMenu.kt @@ -173,7 +173,7 @@ class HomeMenu( /* Gexsi begin: disable help val helpItem = BrowserMenuImageText( context.getString(R.string.browser_menu_help), - R.drawable.ic_help, + R.drawable.mozac_ic_help, primaryTextColor ) { onItemTapped.invoke(Item.Help) @@ -184,7 +184,7 @@ class HomeMenu( val variables = experiments.getVariables(FeatureId.NIMBUS_VALIDATION) val settingsItem = BrowserMenuImageText( variables.getText("settings-title") ?: context.getString(R.string.browser_menu_settings), - variables.getDrawableResource("settings-icon") ?: R.drawable.ic_settings, + variables.getDrawableResource("settings-icon") ?: R.drawable.mozac_ic_settings, primaryTextColor ) { onItemTapped.invoke(Item.Settings) diff --git a/app/src/main/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProvider.kt b/app/src/main/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProvider.kt index e611373cbefd..2225407e0a85 100644 --- a/app/src/main/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProvider.kt +++ b/app/src/main/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProvider.kt @@ -6,11 +6,14 @@ package org.mozilla.fenix.search.awesomebar import android.content.Context import androidx.appcompat.content.res.AppCompatResources +import androidx.core.graphics.BlendModeColorFilterCompat.createBlendModeColorFilterCompat +import androidx.core.graphics.BlendModeCompat.SRC_IN import androidx.core.graphics.drawable.toBitmap import mozilla.components.browser.state.search.SearchEngine import mozilla.components.browser.state.state.searchEngines import mozilla.components.browser.state.store.BrowserStore import mozilla.components.concept.awesomebar.AwesomeBar +import mozilla.components.support.ktx.android.content.getColorFromAttr import org.mozilla.fenix.R import java.util.UUID @@ -26,7 +29,12 @@ class ShortcutsSuggestionProvider( override val id: String = UUID.randomUUID().toString() private val settingsIcon by lazy { - AppCompatResources.getDrawable(context, R.drawable.ic_settings)?.toBitmap() + AppCompatResources.getDrawable(context, R.drawable.mozac_ic_settings)?.apply { + colorFilter = createBlendModeColorFilterCompat( + context.getColorFromAttr(R.attr.primaryText), + SRC_IN + ) + }?.toBitmap() } override suspend fun onInputChanged(text: String): List { diff --git a/app/src/main/java/org/mozilla/fenix/utils/ClearableEditText.kt b/app/src/main/java/org/mozilla/fenix/utils/ClearableEditText.kt index 4f081e0e67a5..7a4a7ebf1cee 100644 --- a/app/src/main/java/org/mozilla/fenix/utils/ClearableEditText.kt +++ b/app/src/main/java/org/mozilla/fenix/utils/ClearableEditText.kt @@ -53,7 +53,7 @@ class ClearableEditText @JvmOverloads constructor( // lengthAfter has inconsistent behaviour when there are spaces in the entered text, so we'll use text.length. val textLength = text?.length ?: 0 val drawable = if (shouldShowClearButton(textLength)) { - AppCompatResources.getDrawable(context, R.drawable.ic_clear)?.apply { + AppCompatResources.getDrawable(context, R.drawable.mozac_ic_clear)?.apply { colorFilter = createBlendModeColorFilterCompat(context.getColorFromAttr(R.attr.primaryText), SRC_IN) } } else { diff --git a/app/src/main/res/drawable/ic_add_to_homescreen.xml b/app/src/main/res/drawable/ic_add_to_homescreen.xml deleted file mode 100644 index 2d07502bf446..000000000000 --- a/app/src/main/res/drawable/ic_add_to_homescreen.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - diff --git a/app/src/main/res/drawable/ic_clear.xml b/app/src/main/res/drawable/ic_clear.xml deleted file mode 100644 index 049b0b0318b5..000000000000 --- a/app/src/main/res/drawable/ic_clear.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/app/src/main/res/drawable/ic_help.xml b/app/src/main/res/drawable/ic_help.xml deleted file mode 100644 index e15b9ed9357a..000000000000 --- a/app/src/main/res/drawable/ic_help.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - diff --git a/app/src/main/res/drawable/ic_home.xml b/app/src/main/res/drawable/ic_home.xml deleted file mode 100644 index 2348db076abc..000000000000 --- a/app/src/main/res/drawable/ic_home.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/app/src/main/res/drawable/ic_settings.xml b/app/src/main/res/drawable/ic_settings.xml deleted file mode 100644 index 6c3315b26d18..000000000000 --- a/app/src/main/res/drawable/ic_settings.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - diff --git a/app/src/main/res/layout/component_tracking_protection_panel.xml b/app/src/main/res/layout/component_tracking_protection_panel.xml index 4452689b2f0f..82cbac12361e 100644 --- a/app/src/main/res/layout/component_tracking_protection_panel.xml +++ b/app/src/main/res/layout/component_tracking_protection_panel.xml @@ -191,7 +191,7 @@ android:layout_width="match_parent" android:layout_height="@dimen/tracking_protection_item_height" android:text="@string/etp_settings" - app:drawableStartCompat="@drawable/ic_settings" + app:drawableStartCompat="@drawable/mozac_ic_settings" app:layout_constraintTop_toBottomOf="@id/line_divider" /> diff --git a/app/src/main/res/layout/fragment_edit_login.xml b/app/src/main/res/layout/fragment_edit_login.xml index 79b94d2b1383..924e3fbe9857 100644 --- a/app/src/main/res/layout/fragment_edit_login.xml +++ b/app/src/main/res/layout/fragment_edit_login.xml @@ -141,7 +141,7 @@ app:tint="@color/saved_login_clear_edit_text_tint" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@id/inputLayoutUsername" - app:srcCompat="@drawable/ic_clear" /> + app:srcCompat="@drawable/mozac_ic_clear" /> + app:srcCompat="@drawable/mozac_ic_clear" /> diff --git a/app/src/main/res/layout/fragment_installed_add_on_details.xml b/app/src/main/res/layout/fragment_installed_add_on_details.xml index 2545ace01c13..0c7d095e22d7 100644 --- a/app/src/main/res/layout/fragment_installed_add_on_details.xml +++ b/app/src/main/res/layout/fragment_installed_add_on_details.xml @@ -63,7 +63,7 @@ android:text="@string/mozac_feature_addons_settings" android:textSize="16sp" android:textColor="?primaryText" - app:drawableStartCompat="@drawable/ic_settings" + app:drawableStartCompat="@drawable/mozac_ic_settings" app:drawableTint="?primaryText" /> + app:srcCompat="@drawable/mozac_ic_add_to_home_screen" />