core/checkbox/styling.go

Functions

Functions

func Padding

Padding sets the padding around the checkbox box.

Returns the widget for method chaining.

func (w *Widget) Padding(v float32) *Widget {
	w.padding = v
	return w
}

func SetBackground

SetBackground sets a custom background color, overriding the default.

Returns the widget for method chaining.

func (w *Widget) SetBackground(c widget.Color) *Widget {
	w.cfg.background = &c
	return w
}