Skip to content

Commit

Permalink
For mozilla-mobile#23121 - Replace @drawable/ic_new with @drawable/mo…
Browse files Browse the repository at this point in the history
…zac_ic_new
  • Loading branch information
gabrielluong authored and pkirakosyan committed Mar 9, 2022
1 parent 29a9f3d commit e7f7d71
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class CollectionCreationBottomBarView(

iconButton.apply {
val drawable = context.getDrawableWithTint(
R.drawable.ic_new,
R.drawable.mozac_ic_new,
ContextCompat.getColor(context, R.color.photonWhite)
)
setImageDrawable(drawable)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class CollectionsListAdapter(
holder.textView.putCompoundDrawablesRelativeWithIntrinsicBounds(
start = AppCompatResources.getDrawable(
holder.textView.context,
R.drawable.ic_new
R.drawable.mozac_ic_new
)
)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ open class DefaultToolbarMenu(

val newTabItem = BrowserMenuImageText(
context.getString(R.string.library_new_tab),
R.drawable.ic_new,
R.drawable.mozac_ic_new,
primaryTextColor()
) {
onItemTapped.invoke(ToolbarMenu.Item.NewTab)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class CreditCardsSettingFragment : BiometricPromptPreferenceFragment() {
manageSavedCardsPreference.title =
getString(R.string.preferences_credit_cards_manage_saved_cards)
} else {
manageSavedCardsPreference.setIcon(R.drawable.ic_new)
manageSavedCardsPreference.setIcon(R.drawable.mozac_ic_new)
manageSavedCardsPreference.title =
getString(R.string.preferences_credit_cards_add_credit_card)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FloatingActionButtonBinding(
shrink()
show()
contentDescription = context.getString(R.string.add_tab)
setIconResource(R.drawable.ic_new)
setIconResource(R.drawable.mozac_ic_new)
setOnClickListener {
browserTrayInteractor.onFabClicked(false)
}
Expand All @@ -56,7 +56,7 @@ class FloatingActionButtonBinding(
extend()
show()
contentDescription = context.getString(R.string.add_private_tab)
setIconResource(R.drawable.ic_new)
setIconResource(R.drawable.mozac_ic_new)
setOnClickListener {
browserTrayInteractor.onFabClicked(true)
}
Expand Down
13 changes: 0 additions & 13 deletions app/src/main/res/drawable/ic_new.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_new"
app:srcCompat="@drawable/mozac_ic_new"
app:tint="?neutral" />

<TextView
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/component_tabstray_fab.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
android:visibility="gone"
app:elevation="99dp"
app:borderWidth="0dp"
app:icon="@drawable/ic_new"
app:icon="@drawable/mozac_ic_new"
app:iconTint="@color/photonWhite" />
2 changes: 1 addition & 1 deletion app/src/main/res/layout/layout_add_credit_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/credit_cards_saved_cards_item_margin_start"
app:srcCompat="@drawable/ic_new"
app:srcCompat="@drawable/mozac_ic_new"
android:importantForAccessibility="no"
app:layout_constraintBottom_toBottomOf="@id/add_credit_card_text"
app:layout_constraintStart_toStartOf="parent"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/layout_add_login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/credit_cards_saved_cards_item_margin_start"
app:srcCompat="@drawable/ic_new"
app:srcCompat="@drawable/mozac_ic_new"
android:importantForAccessibility="no"
app:layout_constraintBottom_toBottomOf="@id/add_login_text"
app:layout_constraintStart_toStartOf="parent"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/preference_search_add_engine.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_new" />
app:srcCompat="@drawable/mozac_ic_new" />

<TextView
android:id="@+id/add_engine_text"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/menu/bookmarks_select_folder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/add_folder_button"
android:icon="@drawable/ic_new"
android:icon="@drawable/mozac_ic_new"
app:iconTint="?primaryText"
android:title="@string/bookmark_add_folder"
app:showAsAction="ifRoom" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class FloatingActionButtonBindingTest {
verify(exactly = 1) { actionButton.show() }
verify(exactly = 0) { actionButton.extend() }
verify(exactly = 0) { actionButton.hide() }
verify(exactly = 1) { actionButton.setIconResource(R.drawable.ic_new) }
verify(exactly = 1) { actionButton.setIconResource(R.drawable.mozac_ic_new) }
verify(exactly = 1) { actionButton.contentDescription = any() }

tabsTrayStore.dispatch(TabsTrayAction.PageSelected(Page.positionToPage(Page.PrivateTabs.ordinal)))
Expand All @@ -110,7 +110,7 @@ class FloatingActionButtonBindingTest {
verify(exactly = 1) { actionButton.extend() }
verify(exactly = 0) { actionButton.hide() }
verify(exactly = 1) { actionButton.setText(R.string.tab_drawer_fab_content) }
verify(exactly = 2) { actionButton.setIconResource(R.drawable.ic_new) }
verify(exactly = 2) { actionButton.setIconResource(R.drawable.mozac_ic_new) }
verify(exactly = 2) { actionButton.contentDescription = any() }

tabsTrayStore.dispatch(TabsTrayAction.PageSelected(Page.positionToPage(Page.SyncedTabs.ordinal)))
Expand Down

0 comments on commit e7f7d71

Please sign in to comment.