Some checks failed
CloudSave/pipeline/head There was a failure building this commit
25 lines
503 B
Go
25 lines
503 B
Go
package loading
|
|
|
|
import (
|
|
"image/color"
|
|
|
|
"fyne.io/fyne/v2"
|
|
"fyne.io/fyne/v2/canvas"
|
|
"fyne.io/fyne/v2/container"
|
|
"fyne.io/fyne/v2/dialog"
|
|
"fyne.io/fyne/v2/layout"
|
|
"fyne.io/fyne/v2/widget"
|
|
)
|
|
|
|
func Make(msg string, w fyne.Window) *dialog.CustomDialog {
|
|
title := canvas.NewText(msg, color.Black)
|
|
title.Alignment = fyne.TextAlignCenter
|
|
|
|
pg := widget.NewProgressBarInfinite()
|
|
|
|
c := container.New(layout.NewVBoxLayout(), title, pg)
|
|
d := dialog.NewCustomWithoutButtons("Loading", c, w)
|
|
|
|
return d
|
|
}
|