mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
example/kitchen: ensure widgets are enabled when taking a screenshot
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
||||
"gioui.org/app"
|
||||
"gioui.org/app/headless"
|
||||
"gioui.org/font/gofont"
|
||||
"gioui.org/io/router"
|
||||
"gioui.org/io/system"
|
||||
"gioui.org/layout"
|
||||
"gioui.org/op"
|
||||
@@ -88,6 +89,7 @@ func saveScreenshot(f string) error {
|
||||
Ops: new(op.Ops),
|
||||
Config: &scaledConfig{scale},
|
||||
Constraints: layout.Exact(sz),
|
||||
Queue: new(router.Router),
|
||||
}
|
||||
th := material.NewTheme(gofont.Collection())
|
||||
kitchen(gtx, th)
|
||||
|
||||
Reference in New Issue
Block a user