Documentation
¶
Index ¶
Constants ¶
View Source
const HexHash = "#"
Variables ¶
This section is empty.
Functions ¶
func GenerateTheme ¶
func GenerateThemeFromJson ¶
Types ¶
type AttrOption ¶
type ColorOptions ¶
type JsonThemeFile ¶
type ThemeFile ¶
type ThemeFile struct {
Colors []ColorOptions `xml:"colors>option"`
ThemeAttrs []AttrOption `xml:"attributes>option"`
}
type ThemeMap ¶
type ThemeMap struct {
DarkBG bool
Fg1 string
Fg2 string
Bg1 string
Bg01 string
Bg2 string
Bg3 string
Bg4 string
Builtin string
Keyword string
Constant string
Comment string
Func string
String string
Type string
Warning string
Warning2 string
InvBuiltin string
InvKeyword string
InvType string
InvFunc string
InvString string
InvWarning string
InvWarning2 string
}
ThemeMap represents all colors of an ui theme. It holds the theme's background color and darker / lighter shades thereof, foregroundcolors in varying shades and colors, and a boolean that is set to true if the background color counts as "dark".
func NewThemeMap ¶
func NewThemeMapFromJson ¶
func NewThemeMapFromJson(file *JsonThemeFile) (ThemeMap, error)
Click to show internal directories.
Click to hide internal directories.