Versions in this module Expand all Collapse all v0 v0.0.6 May 16, 2021 Changes in this version + func Clickable(gtx layout.Context, button *widget.Clickable, w layout.Widget) layout.Dimensions + type ButtonLayoutStyle struct + Background color.NRGBA + Button *widget.Clickable + CornerRadius unit.Value + func ButtonLayout(th *Theme, button *widget.Clickable) ButtonLayoutStyle + func (b ButtonLayoutStyle) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions + type ButtonStyle struct + Background color.NRGBA + Button *widget.Clickable + Color color.NRGBA + CornerRadius unit.Value + Font text.Font + Inset layout.Inset + Text string + TextSize unit.Value + func Button(th *Theme, button *widget.Clickable, txt string) ButtonStyle + func (b ButtonStyle) Layout(gtx layout.Context) layout.Dimensions + type CheckBoxStyle struct + CheckBox *widget.Bool + func CheckBox(th *Theme, checkBox *widget.Bool, label string) CheckBoxStyle + func (c CheckBoxStyle) Layout(gtx layout.Context) layout.Dimensions + type EditorStyle struct + Color color.NRGBA + Editor *widget.Editor + Font text.Font + Hint string + HintColor color.NRGBA + SelectionColor color.NRGBA + TextSize unit.Value + func Editor(th *Theme, editor *widget.Editor, hint string) EditorStyle + func (e EditorStyle) Layout(gtx layout.Context) layout.Dimensions + type IconButtonStyle struct + Background color.NRGBA + Button *widget.Clickable + Color color.NRGBA + Icon *widget.Icon + Inset layout.Inset + Size unit.Value + func IconButton(th *Theme, button *widget.Clickable, icon *widget.Icon) IconButtonStyle + func (b IconButtonStyle) Layout(gtx layout.Context) layout.Dimensions + type LabelStyle struct + Alignment text.Alignment + Color color.NRGBA + Font text.Font + MaxLines int + Text string + TextSize unit.Value + func Body1(th *Theme, txt string) LabelStyle + func Body2(th *Theme, txt string) LabelStyle + func Caption(th *Theme, txt string) LabelStyle + func H1(th *Theme, txt string) LabelStyle + func H2(th *Theme, txt string) LabelStyle + func H3(th *Theme, txt string) LabelStyle + func H4(th *Theme, txt string) LabelStyle + func H5(th *Theme, txt string) LabelStyle + func H6(th *Theme, txt string) LabelStyle + func Label(th *Theme, size unit.Value, txt string) LabelStyle + func (l LabelStyle) Layout(gtx layout.Context) layout.Dimensions + type LoaderStyle struct + Color color.NRGBA + func Loader(th *Theme) LoaderStyle + func (l LoaderStyle) Layout(gtx layout.Context) layout.Dimensions + type Palette struct + Bg color.NRGBA + ContrastBg color.NRGBA + ContrastFg color.NRGBA + Fg color.NRGBA + type ProgressBarStyle struct + Color color.NRGBA + Progress float32 + TrackColor color.NRGBA + func ProgressBar(th *Theme, progress float32) ProgressBarStyle + func (p ProgressBarStyle) Layout(gtx layout.Context) layout.Dimensions + type RadioButtonStyle struct + Group *widget.Enum + Key string + func RadioButton(th *Theme, group *widget.Enum, key, label string) RadioButtonStyle + func (r RadioButtonStyle) Layout(gtx layout.Context) layout.Dimensions + type SliderStyle struct + Color color.NRGBA + FingerSize unit.Value + Float *widget.Float + Max float32 + Min float32 + func Slider(th *Theme, float *widget.Float, min, max float32) SliderStyle + func (s SliderStyle) Layout(gtx layout.Context) layout.Dimensions + type SwitchStyle struct + Color struct{ ... } + Switch *widget.Bool + func Switch(th *Theme, swtch *widget.Bool) SwitchStyle + func (s SwitchStyle) Layout(gtx layout.Context) layout.Dimensions + type Theme struct + FingerSize unit.Value + Icon struct{ ... } + Shaper text.Shaper + TextSize unit.Value + func NewTheme(fontCollection []text.FontFace) *Theme + func (t Theme) WithPalette(p Palette) Theme