From 78ffe64920d48facbccbc437d31ec9b19f93c9b7 Mon Sep 17 00:00:00 2001 From: Jerome Le Saux Date: Thu, 7 Nov 2024 22:51:42 +0100 Subject: [PATCH] fix: fix ui layout --- go.mod | 2 +- go.sum | 2 ++ ui/martine-ui/martine_ui.go | 2 +- ui/martine-ui/sprite_tab.go | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index f32d222..efb3428 100644 --- a/go.mod +++ b/go.mod @@ -41,7 +41,7 @@ require ( github.com/go-text/typesetting v0.2.0 // indirect github.com/godbus/dbus/v5 v5.1.0 // indirect github.com/gopherjs/gopherjs v1.17.2 // indirect - github.com/jeromelesaux/fyne-io v0.0.0-20241107211327-439df5b4ba7e + github.com/jeromelesaux/fyne-io v0.0.0-20241107213605-9c6834c8817e github.com/jsummers/gobmp v0.0.0-20230614200233-a9de23ed2e25 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/muesli/clusters v0.0.0-20200529215643-2700303c1762 // indirect diff --git a/go.sum b/go.sum index 09d0692..8498547 100644 --- a/go.sum +++ b/go.sum @@ -221,6 +221,8 @@ github.com/jeromelesaux/fyne-io v0.0.0-20241106090145-745d8e199648 h1:4I6tfcGQ82 github.com/jeromelesaux/fyne-io v0.0.0-20241106090145-745d8e199648/go.mod h1:dsEn41lwXG/HadYC+I6sk0wDVFWeiFKtp+ADjO856QU= github.com/jeromelesaux/fyne-io v0.0.0-20241107211327-439df5b4ba7e h1:Ud4IBCZiJXK73YXbzr76jilVR5zVECAASqoO5YyWAXQ= github.com/jeromelesaux/fyne-io v0.0.0-20241107211327-439df5b4ba7e/go.mod h1:dsEn41lwXG/HadYC+I6sk0wDVFWeiFKtp+ADjO856QU= +github.com/jeromelesaux/fyne-io v0.0.0-20241107213605-9c6834c8817e h1:j3O16iuT5uC/zfOoxO2eudkpIcbyPTMX/zUFcQhpEtg= +github.com/jeromelesaux/fyne-io v0.0.0-20241107213605-9c6834c8817e/go.mod h1:dsEn41lwXG/HadYC+I6sk0wDVFWeiFKtp+ADjO856QU= github.com/jeromelesaux/m4client v0.0.0-20200309212559-efb59c22369c/go.mod h1:JO0ijl8YXO6FxogJoC3yAFbBjSAnkwFquc8W6C7k94E= github.com/jeromelesaux/m4client v0.0.0-20230327092026-4e80fd2b1474 h1:CWtkpA4Q63pkhHWRrd/e98JD4YVZhk3SZu58bUkQsuI= github.com/jeromelesaux/m4client v0.0.0-20230327092026-4e80fd2b1474/go.mod h1:Xc0HzC2TZ7fbDWyB8LosvziBQ5QvvwVt3xxAIEavWRc= diff --git a/ui/martine-ui/martine_ui.go b/ui/martine-ui/martine_ui.go index eeee582..1be9c14 100644 --- a/ui/martine-ui/martine_ui.go +++ b/ui/martine-ui/martine_ui.go @@ -67,7 +67,7 @@ func (m *MartineUI) Load(app fyne.App) { } m.window = app.NewWindow("Martine @IMPact v" + common.AppVersion) m.window.SetContent(m.NewTabs()) - m.window.Resize(fyne.NewSize(1400, 1000)) + m.window.Resize(fyne.NewSize(1000, 600)) m.window.SetTitle("Martine @IMPact v" + common.AppVersion) m.window.Show() } diff --git a/ui/martine-ui/sprite_tab.go b/ui/martine-ui/sprite_tab.go index 0705d07..b7d2002 100644 --- a/ui/martine-ui/sprite_tab.go +++ b/ui/martine-ui/sprite_tab.go @@ -221,7 +221,7 @@ func (m *MartineUI) newSpriteTab(s *menu.SpriteMenu) *fyne.Container { s.OriginalImages, ), container.New( - layout.NewGridLayoutWithRows(3), + layout.NewVBoxLayout(), container.New( layout.NewVBoxLayout(), container.New(