[fenix] For https://github.com/mozilla-mobile/fenix/issues/23374 - Update Text Inverted, Icon Inverted to Text On Color, Icon On Color

pull/600/head
Gabriel Luong 3 years ago committed by mergify[bot]
parent de628fa635
commit 0219f0f456

@ -114,7 +114,7 @@ private fun WallpaperSnackbar(
modifier = Modifier.padding(start = 16.dp, end = 16.dp, top = 8.dp, bottom = 8.dp),
text = stringResource(R.string.wallpaper_updated_snackbar_message),
textAlign = TextAlign.Start,
color = FirefoxTheme.colors.textInverted,
color = FirefoxTheme.colors.textOnColor,
fontFamily = FontFamily(Font(R.font.metropolis_semibold)),
fontSize = 18.sp,
overflow = TextOverflow.Ellipsis,
@ -130,7 +130,7 @@ private fun WallpaperSnackbar(
text = stringResource(R.string.wallpaper_updated_snackbar_action).uppercase(
Locale.getDefault()
),
color = FirefoxTheme.colors.textInverted,
color = FirefoxTheme.colors.textOnColor,
fontFamily = FontFamily(Font(R.font.metropolis_medium)),
fontSize = 14.sp,
)

@ -68,13 +68,13 @@ private val darkColorPalette = FirefoxColors(
textDisabled = PhotonColors.LightGrey05A40,
textWarning = PhotonColors.Red20,
textAccent = PhotonColors.Violet20,
textInverted = PhotonColors.White,
textOnColor = PhotonColors.LightGrey05,
iconPrimary = PhotonColors.LightGrey05,
iconPrimaryInactive = PhotonColors.LightGrey05A60,
iconSecondary = PhotonColors.LightGrey40,
iconActive = PhotonColors.Violet40,
iconDisabled = PhotonColors.LightGrey05A40,
iconInverted = PhotonColors.White,
iconOnColor = PhotonColors.LightGrey05,
iconNotice = PhotonColors.Blue30,
iconButton = PhotonColors.LightGrey05,
iconWarning = PhotonColors.Red20,
@ -121,13 +121,13 @@ private val lightColorPalette = FirefoxColors(
textDisabled = PhotonColors.DarkGrey90A40,
textWarning = PhotonColors.Red80,
textAccent = PhotonColors.Violet70,
textInverted = PhotonColors.White,
textOnColor = PhotonColors.LightGrey05,
iconPrimary = PhotonColors.DarkGrey90,
iconPrimaryInactive = PhotonColors.DarkGrey90A60,
iconSecondary = PhotonColors.DarkGrey05,
iconActive = PhotonColors.Ink20,
iconDisabled = PhotonColors.DarkGrey90A40,
iconInverted = PhotonColors.White,
iconOnColor = PhotonColors.LightGrey05,
iconNotice = PhotonColors.Blue30,
iconButton = PhotonColors.Ink20,
iconWarning = PhotonColors.Red80,
@ -179,13 +179,13 @@ class FirefoxColors(
textDisabled: Color,
textWarning: Color,
textAccent: Color,
textInverted: Color,
textOnColor: Color,
iconPrimary: Color,
iconPrimaryInactive: Color,
iconSecondary: Color,
iconActive: Color,
iconDisabled: Color,
iconInverted: Color,
iconOnColor: Color,
iconNotice: Color,
iconButton: Color,
iconWarning: Color,
@ -290,7 +290,7 @@ class FirefoxColors(
var textAccent by mutableStateOf(textAccent)
private set
// Text Inverted/On Color
var textInverted by mutableStateOf(textInverted)
var textOnColor by mutableStateOf(textOnColor)
private set
// Icon
@ -311,7 +311,7 @@ class FirefoxColors(
var iconDisabled by mutableStateOf(iconDisabled)
private set
// Icon inverted (on color)
var iconInverted by mutableStateOf(iconInverted)
var iconOnColor by mutableStateOf(iconOnColor)
private set
// New
var iconNotice by mutableStateOf(iconNotice)
@ -387,13 +387,13 @@ class FirefoxColors(
textDisabled = other.textDisabled
textWarning = other.textWarning
textAccent = other.textAccent
textInverted = other.textInverted
textOnColor = other.textOnColor
iconPrimary = other.iconPrimary
iconPrimaryInactive = other.iconPrimaryInactive
iconSecondary = other.iconSecondary
iconActive = other.iconActive
iconDisabled = other.iconDisabled
iconInverted = other.iconInverted
iconOnColor = other.iconOnColor
iconNotice = other.iconNotice
iconButton = other.iconButton
iconWarning = other.iconWarning
@ -440,13 +440,13 @@ class FirefoxColors(
textDisabled = textDisabled,
textWarning = textWarning,
textAccent = textAccent,
textInverted = textInverted,
textOnColor = textOnColor,
iconPrimary = iconPrimary,
iconPrimaryInactive = iconPrimaryInactive,
iconSecondary = iconSecondary,
iconActive = iconActive,
iconDisabled = iconDisabled,
iconInverted = iconInverted,
iconOnColor = iconOnColor,
iconNotice = iconNotice,
iconButton = iconButton,
iconWarning = iconWarning,

@ -62,7 +62,7 @@
<!-- Small heading, Text link -->
<color name="fx_mobile_text_color_accent">@color/photonViolet20</color>
<!-- Text Inverted/On Color -->
<color name="fx_mobile_text_color_inverted" tools:ignore="UnusedResources">@color/photonWhite</color>
<color name="fx_mobile_text_color_oncolor" tools:ignore="UnusedResources">@color/photonLightGrey05</color>
<!-- Icon -->
<!-- Primary icon -->
@ -76,7 +76,7 @@
<!-- Disabled icon -->
<color name="fx_mobile_icon_color_disabled" tools:ignore="UnusedResources">@color/photonLightGrey05A40</color>
<!-- Icon inverted (on color) -->
<color name="fx_mobile_icon_color_inverted" tools:ignore="UnusedResources">@color/photonWhite</color>
<color name="fx_mobile_icon_color_oncolor" tools:ignore="UnusedResources">@color/photonLightGrey05</color>
<!-- Information -->
<color name="fx_mobile_icon_color_information">@color/photonBlue30</color>
<!-- Icon button -->

@ -62,7 +62,7 @@
<!-- Small heading, Text link -->
<color name="fx_mobile_text_color_accent">@color/photonViolet70</color>
<!-- Text Inverted/On Color -->
<color name="fx_mobile_text_color_inverted" tools:ignore="UnusedResources">@color/photonWhite</color>
<color name="fx_mobile_text_color_oncolor" tools:ignore="UnusedResources">@color/photonLightGrey05</color>
<!-- Icon -->
<!-- Primary icon -->
@ -76,7 +76,7 @@
<!-- Disabled icon -->
<color name="fx_mobile_icon_color_disabled" tools:ignore="UnusedResources">@color/photonDarkGrey90A40</color>
<!-- Icon inverted (on color) -->
<color name="fx_mobile_icon_color_inverted" tools:ignore="UnusedResources">@color/photonWhite</color>
<color name="fx_mobile_icon_color_oncolor" tools:ignore="UnusedResources">@color/photonLightGrey05</color>
<!-- Information -->
<color name="fx_mobile_icon_color_information">@color/photonBlue30</color>
<!-- Icon button -->

Loading…
Cancel
Save