Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Primary = rgb(0x69f0ae) PrimaryLight = rgb(0x9fffe0) PrimaryDark = rgb(0x2bbd7e) Secondary = rgb(0xff80ab) SecondaryLight = rgb(0xffb2dd) SecondaryDark = rgb(0xe94f7c) Black = rgb(0x000000) White = rgb(0xffffff) LightGray = rgb(0xeeeeee) Gray = rgb(0xdddddd) DarkGray = rgb(0xcccccc) Background = rgb(0xeeeeee) )
Functions ¶
This section is empty.
Types ¶
type BoxStyle ¶
type BoxStyle struct { Padding layout.Inset Margin layout.Inset Bg color.NRGBA Rounding unit.Dp BorderWidth unit.Dp BorderColor color.NRGBA }
BoxStyle implements a simple box model layout primitive.
type D ¶
type D = layout.Dimensions
type EditorStyle ¶
type EditorStyle struct { Box BoxStyle EditorStyle material.EditorStyle }
EditorStyle configures the presentation of an editor.
type Palette ¶
type Palette struct { Primary ContrastPair PrimaryLight ContrastPair Background ContrastPair Surface1 ContrastPair Surface2 ContrastPair Surface3 ContrastPair Danger ContrastPair }
type SuggestorStyle ¶
type SuggestorStyle[T comparable] struct { State *appwidget.Suggestor[T] Surface component.SurfaceStyle List material.ListStyle OptionFunc func(C, *Theme, T) D CreateOption material.LabelStyle OptionPadding layout.Inset SelectedHighlight color.NRGBA // contains filtered or unexported fields }
SuggestorStyle presents completion suggestions.
func Suggestor ¶
func Suggestor[T comparable](th *Theme, state *appwidget.Suggestor[T], optionFunc func(gtx C, th *Theme, option T) D) SuggestorStyle[T]
Suggestor configures a default SuggestorStyle.
type TxEditorStyle ¶
type TxEditorStyle struct { Box BoxStyle EditorStyle material.EditorStyle State *appwidget.TxEditor SuggestorStyle[string] // contains filtered or unexported fields }
TxEditorStyle configures the presentation of an editor that can suggest completions.
func TxEditor ¶
func TxEditor(th *Theme, state *appwidget.TxEditor, hint string) TxEditorStyle
TagEditor configures a default TxEditorStyle.
func (TxEditorStyle) Layout ¶
func (s TxEditorStyle) Layout(gtx C) D
Layout the editor and (possibly) the selection box.
type TxFormStyle ¶
type TxFormStyle struct { State *appwidget.TxForm SubmitBtn material.ButtonStyle // contains filtered or unexported fields }
func (TxFormStyle) Layout ¶
func (t TxFormStyle) Layout(gtx C) D
type TxHeaderStyle ¶
type TxHeaderStyle struct { Date EditorStyle Payee TxEditorStyle Message material.LabelStyle }
func (TxHeaderStyle) Layout ¶
func (t TxHeaderStyle) Layout(gtx C) D
type TxRowStyle ¶
type TxRowStyle struct { Amount EditorStyle Account TxEditorStyle Message material.LabelStyle }
func (TxRowStyle) Layout ¶
func (t TxRowStyle) Layout(gtx C) D
Click to show internal directories.
Click to hide internal directories.