v0.0.0-...-b8644d8 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2021 License: Unlicense Imports: 4 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Box

type Box interface {
	ApplyDecorator(WidgetDecorator) Box

type CSS

type CSS map[string]WidgetDecorator

func (CSS) Apply

func (css CSS) Apply(key string, box Box) Box

type Stylable

type Stylable struct {
	// contains filtered or unexported fields

func Apply

func Apply(sty Stylable, style string, theme Theme) Stylable

func (Stylable) ApplyDecorator

func (sty Stylable) ApplyDecorator(ws WidgetDecorator) Box

Apply widget style: wrap any existing styler into a new styler

func (Stylable) Styled

func (sty Stylable) Styled(w layout.Widget) layout.Widget

type Styles

type Styles struct {
	Fg          color.NRGBA
	Bg          color.NRGBA
	BorderColor color.NRGBA
	Border      int
	Rounded     bool
	Shaded      bool

func StylesFromTheme

func StylesFromTheme(theme Theme) Styles

type Theme

type Theme struct {
	// contains filtered or unexported fields

func NewTheme

func NewTheme(th *material.Theme, css CSS) Theme

func (Theme) CSS

func (theme Theme) CSS() CSS

func (Theme) Material

func (theme Theme) Material() *material.Theme

type WidgetDecorator

type WidgetDecorator func(layout.Widget) layout.Widget

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL