package app import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" "gitea.mmo.to/ProtocolPacketForger/ppf/internal/ui" ) var fyneApp fyne.App var w fyne.Window func Appmain() { fyneApp = app.New() w = fyneApp.NewWindow("ProtocolPacketForger") w.Resize(fyne.NewSize(1024, 768)) w.SetContent(CreateApp()) w.ShowAndRun() } func CreateApp() *fyne.Container { ui.PPF.Toolbar = ui.CreateToolbar(fyneApp) ui.PPF.Workarea = ui.CreateWorkarea() ui.PPF.Extensions = container.NewCenter() ui.PPF.ProtocolMeta = ui.CreateMetadataProtocol() ui.PPF.Metadata = &ui.PPF.ProtocolMeta.Metadata ui.PPF.ContextBar = container.NewCenter() return container.NewBorder( ui.PPF.Toolbar, ui.PPF.ContextBar, ui.PPF.Metadata.Representation, ui.PPF.Extensions, container.NewVScroll(ui.PPF.Workarea), ) }