apps/gophers: add editor hint

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-01 13:38:02 +02:00
parent d720fa6233
commit 0316a27a45
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module gioui.org/apps
go 1.12
require (
gioui.org/ui v0.0.0-20190627104415-ef9384ceee43
gioui.org/ui v0.0.0-20190701113654-d720fa62331a
github.com/google/go-github/v24 v24.0.1
golang.org/x/exp v0.0.0-20190321205749-f0864edee7f3
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
+2
View File
@@ -264,6 +264,8 @@ func newApp(w *app.Window) *App {
Face: a.face(fonts.italic, 14),
//Alignment: text.End,
SingleLine: true,
Hint: "Hint",
HintImage: &image.Uniform{tertTextColor},
}
a.edit2.SetText("Single line editor. Edit me!")
a.edit = &text.Editor{