Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrimaryLight byte = iota PrimaryDark PrimaryDefault SecondaryLight SecondaryDark SecondaryDefault Default Accent Error )
Variables ¶
This section is empty.
Functions ¶
func LayoutTheme ¶
func LayoutTheme(widget ThemedWidget, theme *material.Theme) layout.Widget
Types ¶
type Background ¶
func (*Background) Layout ¶
func (b *Background) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
type ClipCircle ¶
type ClipCircle struct { }
func (ClipCircle) Layout ¶
func (cc ClipCircle) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
type ContrastPair ¶
type InitialSign ¶
InitialSign is a widget which shows a Initial on a colored background
func (InitialSign) Layout ¶
func (w InitialSign) Layout(gtx layout.Context) layout.Dimensions
type ListElement ¶
type ListElement struct { Before layout.Widget Lines [2]string AfterText string Click *widget.Clickable }
func (ListElement) Layout ¶
func (w ListElement) Layout(gtx g, th *material.Theme) d
type RoundImage ¶
func (RoundImage) Layout ¶
func (w RoundImage) Layout(gtx layout.Context) layout.Dimensions
type StatusMessage ¶
type StatusMessage struct {
Text string
}
func (StatusMessage) Layout ¶
func (m StatusMessage) Layout(gtx g, th *material.Theme) d
type Theme ¶
type Theme struct { Colors [9]ContrastPair // contains filtered or unexported fields }
func NewDarkTheme ¶
func NewDarkTheme() Theme
type ThemedWidget ¶
Click to show internal directories.
Click to hide internal directories.