Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #22701 - Replace whats_new_notification_color with fx_mobile_icon…
Browse files Browse the repository at this point in the history
…_color_notice color token
  • Loading branch information
gabrielluong authored and pull[bot] committed Apr 22, 2022
1 parent a2ed7b8 commit 94ce713
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class BrowserToolbarView(
trackingProtection = primaryTextColor,
highlight = ContextCompat.getColor(
context,
R.color.whats_new_notification_color
R.color.fx_mobile_icon_color_notice
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ open class DefaultToolbarMenu(
iconTintColorResource = primaryTextColor(),
highlight = BrowserMenuHighlight.LowPriority(
label = context.getString(R.string.browser_menu_install_on_homescreen),
notificationTint = getColor(context, R.color.whats_new_notification_color)
notificationTint = getColor(context, R.color.fx_mobile_icon_color_notice)
),
isHighlighted = {
!context.settings().installPwaOpened
Expand Down Expand Up @@ -250,7 +250,7 @@ open class DefaultToolbarMenu(
iconTintColorResource = primaryTextColor(),
highlight = BrowserMenuHighlight.LowPriority(
label = context.getString(R.string.browser_menu_open_app_link),
notificationTint = getColor(context, R.color.whats_new_notification_color)
notificationTint = getColor(context, R.color.fx_mobile_icon_color_notice)
),
isHighlighted = { !context.settings().openInAppOpened }
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class CustomTabToolbarMenu(
iconTintColorResource = primaryTextColor(),
highlight = BrowserMenuHighlight.LowPriority(
label = context.getString(R.string.browser_menu_open_app_link),
notificationTint = getColor(context, R.color.whats_new_notification_color)
notificationTint = getColor(context, R.color.fx_mobile_icon_color_notice)
),
isHighlighted = { !context.settings().openInAppOpened }
) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/mozilla/fenix/home/HomeMenu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class HomeMenu(
R.drawable.ic_whats_new,
iconTintColorResource = primaryTextColor,
highlight = BrowserMenuHighlight.LowPriority(
notificationTint = getColor(context, R.color.whats_new_notification_color)
notificationTint = getColor(context, R.color.fx_mobile_icon_color_notice)
),
isHighlighted = { WhatsNew.shouldHighlightWhatsNew(context) }
) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<!-- Icon inverted (on color) -->
<color name="fx_mobile_icon_color_inverted" tools:ignore="UnusedResources">@color/photonWhite</color>
<!-- New -->
<color name="fx_mobile_icon_color_notice" tools:ignore="UnusedResources">@color/photonBlue30</color>
<color name="fx_mobile_icon_color_notice">@color/photonBlue30</color>
<!-- Icon button -->
<color name="fx_mobile_icon_color_button" tools:ignore="UnusedResources">@color/photonLightGrey05</color>
<color name="fx_mobile_icon_color_warning" tools:ignore="UnusedResources">@color/photonRed40</color>
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<!-- Icon inverted (on color) -->
<color name="fx_mobile_icon_color_inverted" tools:ignore="UnusedResources">@color/photonWhite</color>
<!-- New -->
<color name="fx_mobile_icon_color_notice" tools:ignore="UnusedResources">@color/photonBlue30</color>
<color name="fx_mobile_icon_color_notice">@color/photonBlue30</color>
<!-- Icon button -->
<color name="fx_mobile_icon_color_button" tools:ignore="UnusedResources">@color/photonViolet90</color>
<color name="fx_mobile_icon_color_warning" tools:ignore="UnusedResources">@color/photonRed80</color>
Expand Down Expand Up @@ -309,9 +309,6 @@
<!-- Private Browsing Mode Persistent Notification -->
<color name="pbm_notification_color">@color/photonViolet70</color>

<!-- Notification Color -->
<color name="whats_new_notification_color">@color/photonBlue30</color>

<!-- Static Shortcut Background Color -->
<color name="static_shortcut_background">#F5F5F5</color>

Expand Down

0 comments on commit 94ce713

Please sign in to comment.