package cview
import "github.com/gdamore/tcell/v2"
type Theme struct {
TitleColor tcell .Color
BorderColor tcell .Color
GraphicsColor tcell .Color
PrimaryTextColor tcell .Color
SecondaryTextColor tcell .Color
TertiaryTextColor tcell .Color
InverseTextColor tcell .Color
ContrastPrimaryTextColor tcell .Color
ContrastSecondaryTextColor tcell .Color
PrimitiveBackgroundColor tcell .Color
ContrastBackgroundColor tcell .Color
MoreContrastBackgroundColor tcell .Color
ButtonCursorRune rune
CheckBoxCheckedRune rune
CheckBoxCursorRune rune
ContextMenuPaddingTop int
ContextMenuPaddingBottom int
ContextMenuPaddingLeft int
ContextMenuPaddingRight int
DropDownAbbreviationChars string
DropDownSymbol rune
DropDownOpenSymbol rune
DropDownSelectedSymbol rune
ScrollBarColor tcell .Color
WindowMinWidth int
WindowMinHeight int
}
var Styles = Theme {
TitleColor : tcell .ColorWhite .TrueColor (),
BorderColor : tcell .ColorWhite .TrueColor (),
GraphicsColor : tcell .ColorWhite .TrueColor (),
PrimaryTextColor : tcell .ColorWhite .TrueColor (),
SecondaryTextColor : tcell .ColorYellow .TrueColor (),
TertiaryTextColor : tcell .ColorLimeGreen .TrueColor (),
InverseTextColor : tcell .ColorBlack .TrueColor (),
ContrastPrimaryTextColor : tcell .ColorBlack .TrueColor (),
ContrastSecondaryTextColor : tcell .ColorLightSlateGray .TrueColor (),
PrimitiveBackgroundColor : tcell .ColorBlack .TrueColor (),
ContrastBackgroundColor : tcell .ColorGreen .TrueColor (),
MoreContrastBackgroundColor : tcell .ColorDarkGreen .TrueColor (),
ButtonCursorRune : '◀' ,
CheckBoxCheckedRune : 'X' ,
CheckBoxCursorRune : '◀' ,
ContextMenuPaddingTop : 0 ,
ContextMenuPaddingBottom : 0 ,
ContextMenuPaddingLeft : 1 ,
ContextMenuPaddingRight : 1 ,
DropDownAbbreviationChars : "..." ,
DropDownSymbol : '◀' ,
DropDownOpenSymbol : '▼' ,
DropDownSelectedSymbol : '▶' ,
ScrollBarColor : tcell .ColorWhite .TrueColor (),
WindowMinWidth : 4 ,
WindowMinHeight : 3 ,
}
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .