Added TextPositive & TextNegative colors.

This commit is contained in:
Sander Schobers 2019-06-24 20:57:58 +02:00
parent c709d906d0
commit ff064bbf1f

View File

@ -34,8 +34,12 @@ type Palette struct {
Text color.Color Text color.Color
// TextDisabled is disabled text color. // TextDisabled is disabled text color.
TextDisabled color.Color TextDisabled color.Color
// TextNegative is the text color associated with a negative event.
TextNegative color.Color
// TextOnPrimary is the text color when used with the main contrast color as background. // TextOnPrimary is the text color when used with the main contrast color as background.
TextOnPrimary color.Color TextOnPrimary color.Color
// TextPositive is the text color associated with a positive event.
TextPositive color.Color
} }
type Style struct { type Style struct {
@ -75,7 +79,9 @@ func DefaultPalette() *Palette {
ShadedBackground: RGBA(0xFA, 0xFA, 0xFA, 0xFF), ShadedBackground: RGBA(0xFA, 0xFA, 0xFA, 0xFF),
Text: color.Black, Text: color.Black,
TextDisabled: RGBA(0xBD, 0xBD, 0xBD, 0xFF), TextDisabled: RGBA(0xBD, 0xBD, 0xBD, 0xFF),
TextNegative: RGBA(0xFF, 0x43, 0x36, 0xFF),
TextOnPrimary: color.White, TextOnPrimary: color.White,
TextPositive: RGBA(0x4C, 0xAF, 0x50, 0xFF),
} }
} }
return defaultPalette return defaultPalette