Documentation ¶
Index ¶
- func AddCSSVariables(vars map[string]string)
- func AddClass(w gtk.Widgetter, classes ...string)
- func Applier(class, css string) func(gtk.Widgetter)
- func Apply(widget gtk.Widgetter, css string)
- func ApplyGlobalCSS()
- func ApplyUserCSS(path string)
- func Applyf(widget gtk.Widgetter, f string, v ...interface{})
- func WriteCSS(css string) struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCSSVariables ¶
AddCSSVariables adds the variables from the given map into the global variables map. This function must be called before ApplyGlobalCSS is called for it to have an effect.
To use a variable, use the {$variable} syntax.
func Applier ¶
func Applier(class, css string) func(gtk.Widgetter)
Applier returns a constructor that applies a class to the given widgetter. It also writes the CSS to the global CSS.
func Apply ¶
func Apply(widget gtk.Widgetter, css string)
Apply applies the given CSS into the given widget's style context.
func ApplyGlobalCSS ¶
func ApplyGlobalCSS()
ApplyGlobalCSS applies the current global CSS to the default display.
func ApplyUserCSS ¶
func ApplyUserCSS(path string)
ApplyUserCSS applies the user CSS at the given path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.