From ff064bbf1f7e140ce4e5880f597de7b5b11b8ea7 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Mon, 24 Jun 2019 20:57:58 +0200 Subject: [PATCH] Added TextPositive & TextNegative colors. --- ui/style.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/style.go b/ui/style.go index 7e318db..41953e6 100644 --- a/ui/style.go +++ b/ui/style.go @@ -34,8 +34,12 @@ type Palette struct { Text color.Color // TextDisabled is disabled text 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 color.Color + // TextPositive is the text color associated with a positive event. + TextPositive color.Color } type Style struct { @@ -75,7 +79,9 @@ func DefaultPalette() *Palette { ShadedBackground: RGBA(0xFA, 0xFA, 0xFA, 0xFF), Text: color.Black, TextDisabled: RGBA(0xBD, 0xBD, 0xBD, 0xFF), + TextNegative: RGBA(0xFF, 0x43, 0x36, 0xFF), TextOnPrimary: color.White, + TextPositive: RGBA(0x4C, 0xAF, 0x50, 0xFF), } } return defaultPalette