layout: reorder fields in Inset to match system.Insets

This makes it simple to convert from one into the other.

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2022-01-24 09:47:38 +01:00
committed by Elias Naur
parent 29e6159d30
commit 3bb0171e7a
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -157,9 +157,9 @@ func (w *window) draw(sync bool) {
},
Insets: system.Insets{
Top: unit.Px(float32(params.top)),
Right: unit.Px(float32(params.right)),
Bottom: unit.Px(float32(params.bottom)),
Left: unit.Px(float32(params.left)),
Right: unit.Px(float32(params.right)),
},
Metric: unit.Metric{
PxPerDp: float32(params.dpi) * inchPrDp,