mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
apps/gophers: add editor hint
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ module gioui.org/apps
|
|||||||
go 1.12
|
go 1.12
|
||||||
|
|
||||||
require (
|
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
|
github.com/google/go-github/v24 v24.0.1
|
||||||
golang.org/x/exp v0.0.0-20190321205749-f0864edee7f3
|
golang.org/x/exp v0.0.0-20190321205749-f0864edee7f3
|
||||||
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
|
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
|
||||||
|
|||||||
@@ -264,6 +264,8 @@ func newApp(w *app.Window) *App {
|
|||||||
Face: a.face(fonts.italic, 14),
|
Face: a.face(fonts.italic, 14),
|
||||||
//Alignment: text.End,
|
//Alignment: text.End,
|
||||||
SingleLine: true,
|
SingleLine: true,
|
||||||
|
Hint: "Hint",
|
||||||
|
HintImage: &image.Uniform{tertTextColor},
|
||||||
}
|
}
|
||||||
a.edit2.SetText("Single line editor. Edit me!")
|
a.edit2.SetText("Single line editor. Edit me!")
|
||||||
a.edit = &text.Editor{
|
a.edit = &text.Editor{
|
||||||
|
|||||||
Reference in New Issue
Block a user