| 1 |
// From https://github.com/rivo/tview/blob/master/styles.go |
| 2 |
// Copyright (c) 2018 Oliver Kuederle |
| 3 |
// MIT license |
| 4 |
|
| 5 |
package mauview |
| 6 |
|
| 7 |
import "go.mau.fi/tcell" |
| 8 |
|
| 9 |
// Styles defines various colors used when primitives are initialized. These |
| 10 |
// may be changed to accommodate a different look and feel. |
| 11 |
// |
| 12 |
// The default is for applications with a black background and basic colors: |
| 13 |
// black, white, yellow, green, and blue. |
| 14 |
var Styles = struct { |
| 15 |
PrimitiveBackgroundColor tcell.Color // Main background color for primitives. |
| 16 |
ContrastBackgroundColor tcell.Color // Background color for contrasting elements. |
| 17 |
MoreContrastBackgroundColor tcell.Color // Background color for even more contrasting elements. |
| 18 |
BorderColor tcell.Color // Box borders. |
| 19 |
TitleColor tcell.Color // Box titles. |
| 20 |
GraphicsColor tcell.Color // Graphics. |
| 21 |
PrimaryTextColor tcell.Color // Primary text. |
| 22 |
SecondaryTextColor tcell.Color // Secondary text (e.g. labels). |
| 23 |
TertiaryTextColor tcell.Color // Tertiary text (e.g. subtitles, notes). |
| 24 |
InverseTextColor tcell.Color // Text on primary-colored backgrounds. |
| 25 |
ContrastSecondaryTextColor tcell.Color // Secondary text on ContrastBackgroundColor-colored backgrounds. |
| 26 |
}{ |
| 27 |
PrimitiveBackgroundColor: tcell.ColorBlack, |
| 28 |
ContrastBackgroundColor: tcell.ColorBlue, |
| 29 |
MoreContrastBackgroundColor: tcell.ColorGreen, |
| 30 |
BorderColor: tcell.ColorWhite, |
| 31 |
TitleColor: tcell.ColorWhite, |
| 32 |
GraphicsColor: tcell.ColorWhite, |
| 33 |
PrimaryTextColor: tcell.ColorWhite, |
| 34 |
SecondaryTextColor: tcell.ColorYellow, |
| 35 |
TertiaryTextColor: tcell.ColorGreen, |
| 36 |
InverseTextColor: tcell.ColorBlue, |
| 37 |
ContrastSecondaryTextColor: tcell.ColorDarkCyan, |
| 38 |
} |