update to latest gioui.org API, fix cross platform builds
This commit is contained in:
11
app.go
11
app.go
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user