ui: rename Config.Val to Pixels

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-10 13:59:09 +02:00
parent e3ba84758c
commit 320579814f
8 changed files with 22 additions and 23 deletions
+2 -2
View File
@@ -153,7 +153,7 @@ func (e *Editor) Next() (EditorEvent, bool) {
}
func (e *Editor) caretWidth() fixed.Int26_6 {
oneDp := e.Config.Val(ui.Dp(1))
oneDp := e.Config.Dp(1)
return fixed.Int26_6(oneDp * 64)
}
@@ -167,7 +167,7 @@ func (e *Editor) Layout(ops *ui.Ops, cs layout.Constraints) layout.Dimens {
break
}
}
twoDp := e.Config.Val(ui.Dp(2))
twoDp := e.Config.Dp(2)
e.padLeft, e.padRight = twoDp, twoDp
maxWidth := cs.Width.Max
if e.SingleLine {