mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
example/kitchen: clean up
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
editor.SetText(longText)
|
||||||
ic, err := material.NewIcon(icons.ContentAdd)
|
ic, err := material.NewIcon(icons.ContentAdd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
@@ -71,13 +72,7 @@ var (
|
|||||||
icon *material.Icon
|
icon *material.Icon
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
|
||||||
editor.SetText(longText)
|
|
||||||
}
|
|
||||||
|
|
||||||
func kitchen(gtx *layout.Context, th *material.Theme) {
|
func kitchen(gtx *layout.Context, th *material.Theme) {
|
||||||
gtx.Constraints.Width.Min = 0
|
|
||||||
gtx.Constraints.Height.Min = 0
|
|
||||||
widgets := []func(){
|
widgets := []func(){
|
||||||
func() {
|
func() {
|
||||||
th.H3(topLabel).Layout(gtx)
|
th.H3(topLabel).Layout(gtx)
|
||||||
|
|||||||
Reference in New Issue
Block a user