Well I think thats all of the examples

There are too many examples.
This commit is contained in:
2023-04-10 02:58:52 -04:00
parent 6db5901247
commit aed448671b
29 changed files with 54 additions and 44 deletions

View File

@@ -1,5 +1,6 @@
package popups
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/layouts"
import "git.tebibyte.media/sashakoshka/tomo/elements"
@@ -36,9 +37,9 @@ func NewDialog (
window tomo.Window,
) {
if parent == nil {
window, _ = tomo.NewWindow(2, 2)
window, _ = tomo.NewWindow(image.Rectangle { })
} else {
window, _ = parent.NewModal(2, 2)
window, _ = parent.NewModal(image.Rectangle { })
}
window.SetTitle(title)