all: move Now from system.Config to system.FrameEvent

Then, make layout.Context.Now a field, copied from FrameEvent.Now.

API change:

	gofmt -r 'gtx.Now() -> gtx.Now'

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-06-09 23:18:04 +02:00
parent 81a84d874b
commit 6380baacb6
14 changed files with 25 additions and 34 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ func drawInk(gtx layout.Context, c widget.Press) {
fadeDuration = float32(0.9)
)
now := gtx.Now()
now := gtx.Now
t := float32(now.Sub(c.Start).Seconds())