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

11
app.go
View File

@@ -6,8 +6,8 @@ import (
"go.uber.org/atomic"
"golang.org/x/exp/shiny/materialdesign/icons"
l "github.com/p9c/p9/pkg/gel/gio/layout"
"github.com/p9c/p9/pkg/gel/gio/unit"
l "gioui.org/layout"
"gioui.org/unit"
)
// App defines an application with a header, sidebar/menu, right side button bar, changeable body page widget and
@@ -57,7 +57,7 @@ type App struct {
type WidgetMap map[string]l.Widget
func (w *Window) App(size *atomic.Int32, activePage *atomic.String, Break1 float32, ) *App {
func (w *Window) App(size *atomic.Int32, activePage *atomic.String, Break1 float32) *App {
// mc := w.Clickable()
a := &App{
Window: w,
@@ -211,9 +211,8 @@ func (a *App) MainFrame(gtx l.Context) l.Dimensions {
},
},
{
Size: a.Break1,
Widget:
a.renderSideBar(),
Size: a.Break1,
Widget: a.renderSideBar(),
},
},
).Fn,