Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SystemDir is the Location of installed themes SystemDir string // Current is the theme to use when rendering Current Theme )
View Source
var ErrThemeMissing = errors.New("unable to find specified theme")
ErrThemeMissing occurs when a configured theme cannot be found
Functions ¶
Types ¶
type Colors ¶
type Colors struct {
// 4-bit color for Linux Console
C8 struct {
FG color.Color
BG color.Color
}
// 8-bit color for full terminals
C256 struct {
FG color.Color
BG color.Color
}
}
Colors defines FG/BG color pairs for themes
type Piece ¶
type Piece struct {
// ASCII symbol for non-Unicode terminals (Linux console)
ASCII string `json:"ascii"`
// Unicode symbol for Unicode terminals
Unicode string `json:"unicode"`
// 4-bit color for Linux Console
C8 struct {
FG color.Color `json:"fg"`
BG color.Color `json:"bg"`
} `json:"8"`
// 8-bit color for full terminals
C256 struct {
FG color.Color `json:"fg"`
BG color.Color `json:"bg"`
} `json:"256"`
}
Piece is the configuration for a Piece when rendering
Click to show internal directories.
Click to hide internal directories.