From e5cd73161d01056ae1b5cf31a9ca60467c432828 Mon Sep 17 00:00:00 2001 From: Martyn Date: Sun, 12 Dec 2021 12:20:06 +0100 Subject: [PATCH] cleanup --- examples/floatingControlsContainer/main.go | 35 ---------------------- 1 file changed, 35 deletions(-) delete mode 100644 examples/floatingControlsContainer/main.go diff --git a/examples/floatingControlsContainer/main.go b/examples/floatingControlsContainer/main.go deleted file mode 100644 index 56b8175..0000000 --- a/examples/floatingControlsContainer/main.go +++ /dev/null @@ -1,35 +0,0 @@ -package main - -import ( - "fmt" - "image/color" - - "fyne.io/fyne/v2" - "fyne.io/fyne/v2/app" - "fyne.io/fyne/v2/canvas" - "fyne.io/fyne/v2/container" - "fyne.io/fyne/v2/widget" - "git.martyn.berlin/martyn/fyne-widgets/pkg/layouts" -) - -func main() { - a := app.New() - w := a.NewWindow("FloatingButtons") - - background := canvas.NewRectangle(color.RGBA{255, 0, 0, 128}) - - layout := layouts.NewFloatingControlsLayout() - layout.FloatingControlsLocation = layouts.FloatingControlsCenter - button := widget.NewButton("X", func() { - fmt.Println("button clicked") - layout.FloatingControlsLocation = layout.FloatingControlsLocation + 1 - if layout.FloatingControlsLocation > 8 { - layout.FloatingControlsLocation = 0 - } - w.SetContent(w.Content()) - }) - - w.SetContent(container.New(&layout, background, button)) - w.Resize(fyne.NewSize(100, 100)) - w.ShowAndRun() -}