Bug 1882914 - Add `iconOnColorDisabled` color token

fenix/125.0
Noah Bond 3 months ago committed by mergify[bot]
parent b4928654d2
commit 600b78f2d1

@ -140,6 +140,7 @@ private val darkColorPalette = FirefoxColors(
iconActive = PhotonColors.Violet40, iconActive = PhotonColors.Violet40,
iconDisabled = PhotonColors.LightGrey05A40, iconDisabled = PhotonColors.LightGrey05A40,
iconOnColor = PhotonColors.LightGrey05, iconOnColor = PhotonColors.LightGrey05,
iconOnColorDisabled = PhotonColors.LightGrey05A40,
iconNotice = PhotonColors.Blue30, iconNotice = PhotonColors.Blue30,
iconButton = PhotonColors.LightGrey05, iconButton = PhotonColors.LightGrey05,
iconWarning = PhotonColors.Red20, iconWarning = PhotonColors.Red20,
@ -214,6 +215,7 @@ private val lightColorPalette = FirefoxColors(
iconActive = PhotonColors.Ink20, iconActive = PhotonColors.Ink20,
iconDisabled = PhotonColors.DarkGrey90A40, iconDisabled = PhotonColors.DarkGrey90A40,
iconOnColor = PhotonColors.LightGrey05, iconOnColor = PhotonColors.LightGrey05,
iconOnColorDisabled = PhotonColors.LightGrey05A40,
iconNotice = PhotonColors.Blue30, iconNotice = PhotonColors.Blue30,
iconButton = PhotonColors.Ink20, iconButton = PhotonColors.Ink20,
iconWarning = PhotonColors.Red70, iconWarning = PhotonColors.Red70,
@ -299,6 +301,7 @@ class FirefoxColors(
iconActive: Color, iconActive: Color,
iconDisabled: Color, iconDisabled: Color,
iconOnColor: Color, iconOnColor: Color,
iconOnColorDisabled: Color,
iconNotice: Color, iconNotice: Color,
iconButton: Color, iconButton: Color,
iconWarning: Color, iconWarning: Color,
@ -531,6 +534,10 @@ class FirefoxColors(
var iconOnColor by mutableStateOf(iconOnColor) var iconOnColor by mutableStateOf(iconOnColor)
private set private set
// Disabled icon inverted (on color)
var iconOnColorDisabled by mutableStateOf(iconOnColorDisabled)
private set
// New // New
var iconNotice by mutableStateOf(iconNotice) var iconNotice by mutableStateOf(iconNotice)
private set private set
@ -653,6 +660,7 @@ class FirefoxColors(
iconActive = other.iconActive iconActive = other.iconActive
iconDisabled = other.iconDisabled iconDisabled = other.iconDisabled
iconOnColor = other.iconOnColor iconOnColor = other.iconOnColor
iconOnColorDisabled = other.iconOnColorDisabled
iconNotice = other.iconNotice iconNotice = other.iconNotice
iconButton = other.iconButton iconButton = other.iconButton
iconWarning = other.iconWarning iconWarning = other.iconWarning
@ -730,6 +738,7 @@ class FirefoxColors(
iconActive: Color = this.iconActive, iconActive: Color = this.iconActive,
iconDisabled: Color = this.iconDisabled, iconDisabled: Color = this.iconDisabled,
iconOnColor: Color = this.iconOnColor, iconOnColor: Color = this.iconOnColor,
iconOnColorDisabled: Color = this.iconOnColorDisabled,
iconNotice: Color = this.iconNotice, iconNotice: Color = this.iconNotice,
iconButton: Color = this.iconButton, iconButton: Color = this.iconButton,
iconWarning: Color = this.iconWarning, iconWarning: Color = this.iconWarning,
@ -802,6 +811,7 @@ class FirefoxColors(
iconActive = iconActive, iconActive = iconActive,
iconDisabled = iconDisabled, iconDisabled = iconDisabled,
iconOnColor = iconOnColor, iconOnColor = iconOnColor,
iconOnColorDisabled = iconOnColorDisabled,
iconNotice = iconNotice, iconNotice = iconNotice,
iconButton = iconButton, iconButton = iconButton,
iconWarning = iconWarning, iconWarning = iconWarning,

Loading…
Cancel
Save