theme/cupertino/textfield.go
Functions
func PaintTextField
func (p TextFieldPainter) PaintTextField(canvas widget.Canvas, st textfield.PaintState) {
if st.Bounds.IsEmpty() {
return
}
colors := p.resolveColors()
cupPaintTFBackground(canvas, st, colors)
cupPaintTFBorder(canvas, st, colors)
cupPaintTFContent(canvas, st, colors)
cupPaintTFCursor(canvas, st, colors)
cupPaintTFError(canvas, st, colors)
}
Structs
type TextFieldPainter struct
TextFieldPainter renders text fields using Apple HIG design tokens.
Cupertino text fields use a rounded rectangle with a light background
and subtle border, following iOS text field conventions.
If Theme is nil, TextFieldPainter falls back to the default system blue palette.
type TextFieldPainter struct {
Theme *Theme // nil uses default system blue fallback
}
PaintTextField renders a text field according to Apple HIG specifications.