mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
widget: rename CheckBox to Bool
We're about to introduce the Switch widget that re-uses the same state type as CheckBox. The Bool name covers both uses. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -28,8 +28,8 @@ func CheckBox(th *Theme, label string) CheckBoxStyle {
|
||||
}
|
||||
|
||||
// Layout updates the checkBox and displays it.
|
||||
func (c CheckBoxStyle) Layout(gtx *layout.Context, checkBox *widget.CheckBox) {
|
||||
func (c CheckBoxStyle) Layout(gtx *layout.Context, checkBox *widget.Bool) {
|
||||
checkBox.Update(gtx)
|
||||
c.layout(gtx, checkBox.Checked)
|
||||
c.layout(gtx, checkBox.Value)
|
||||
checkBox.Layout(gtx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user