Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Theme

type Theme struct {
	Shaper *text.Shaper
	Color  struct {
		Text    color.RGBA
		Hint    color.RGBA
		InvText color.RGBA
		BgEven  color.RGBA
		BgCurr  color.RGBA
	}
	TextSize unit.Value
}

Theme is simple copy of gioui.org/widget/material theme

func NewTheme

func NewTheme() *Theme

NewTheme returns simple theme

func (*Theme) Body

func (t *Theme) Body(txt string) label

Body is a wrapper around themed label

func (*Theme) BodyOdd

func (t *Theme) BodyOdd(txt string) label

BodyOdd is a wrapper around themed label for odd rows

func (*Theme) Caption

func (t *Theme) Caption(txt string) label

Caption returns a label for profiling

func (*Theme) Editor

func (t *Theme) Editor(hint string) editor

Editor returns an editor

func (*Theme) Label

func (t *Theme) Label(size unit.Value, txt string) label

Label returns themed label

func (*Theme) LabelOdd

func (t *Theme) LabelOdd(size unit.Value, txt string) label

Label returns themed lable for odd rows in list