Documentation
¶
Index ¶
- Variables
- func Blue(text string) string
- func Bold(text string) string
- func Cyan(text string) string
- func CyanBold(text string) string
- func Gray(text string) string
- func Green(text string) string
- func GreenBold(text string) string
- func Magenta(text string) string
- func Orange(text string) string
- func OrangeBold(text string) string
- func Red(text string) string
- func RedBold(text string) string
- func Stylize(text string, fgCode string, bold bool) string
- func Yellow(text string) string
- func YellowBold(text string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PrimaryFrameColor = gocui.ColorWhite FocusedFrameColor = gocui.ColorGreen PrimaryTitleColor = gocui.ColorWhite | gocui.AttrNone FocusedTitleColor = gocui.ColorGreen | gocui.AttrBold // Tab styling FocusedActiveTabColor = gocui.ColorGreen | gocui.AttrBold PrimaryActiveTabColor = gocui.ColorGreen | gocui.AttrNone // List selection colour SelectionBgColor = gocui.ColorBlue )
Frame and title colour constants shared across all panels/contexts.
View Source
var DefaultFrameRunes = []rune{'─', '│', '╭', '╮', '╰', '╯'}
DefaultFrameRunes defines the standard rounded-corner frame characters used by all panels and contexts.
Functions ¶
func OrangeBold ¶
OrangeBold colours text orange and makes it bold.
func Stylize ¶
Stylize applies combined ANSI styling (foreground colour code + bold flag). fgCode is a raw ANSI colour code such as "31" (red) or "38;5;208" (orange). If both fgCode and bold are empty/false the original text is returned unchanged.
func YellowBold ¶
YellowBold colours text yellow and makes it bold.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.