update to latest gioui.org API, fix cross platform builds

This commit is contained in:
2025-12-03 08:28:59 +00:00
parent f6bd76b838
commit a10c3ad0fe
364 changed files with 363 additions and 63307 deletions

View File

@@ -5,7 +5,7 @@ package gel
import (
"golang.org/x/exp/shiny/materialdesign/icons"
l "github.com/p9c/p9/pkg/gel/gio/layout"
l "gioui.org/layout"
)
type RadioButton struct {
@@ -26,9 +26,9 @@ func (w *Window) RadioButton(checkable *Checkable, group *Enum, key,
group: group,
Window: w,
Checkable: checkable.
CheckedStateIcon(&icons.ToggleRadioButtonChecked). // Color("Primary").
CheckedStateIcon(&icons.ToggleRadioButtonChecked). // Color("Primary").
UncheckedStateIcon(&icons.ToggleRadioButtonUnchecked). // Color("PanelBg").
Label(label), // .Color("DocText").IconColor("PanelBg"),
Label(label), // .Color("DocText").IconColor("PanelBg"),
key: key,
}
}