theme/devtools/textfield.go
Functions
func PaintTextField
func (p TextFieldPainter) PaintTextField(canvas widget.Canvas, st textfield.PaintState) {
if st.Bounds.IsEmpty() {
return
}
colors := p.resolveColors()
dtPaintTFBackground(canvas, st, colors)
dtPaintTFBorder(canvas, st, colors)
dtPaintTFContent(canvas, st, colors)
dtPaintTFCursor(canvas, st, colors)
dtPaintTFError(canvas, st, colors)
}
Structs
type TextFieldPainter struct
TextFieldPainter renders text fields using DevTools design tokens.
DevTools text fields use a deep InputBackground (#1E1F22) with 4px radius,
subtle Gray5 border, and Blue6 border on focus — matching JetBrains IDE
input field styling.
If Theme is nil, TextFieldPainter falls back to the default DevTools dark palette.
type TextFieldPainter struct {
Theme *Theme // nil uses default DevTools dark fallback
}
PaintTextField renders a text field according to DevTools design specifications.