ConfigDialog: tweak widths computation

Small fixes to widths computation for a more balanced layout.
Decreased min width of names (on the left) from 33% to 25%, to
allow more room for toggles on the right.
(May make things a little bit too stretched out with english,
but should help with other languages that use longer words to
name things than english.)

Also ignore disabled option names in the names width calculation
(noticable on the PDF right most config menu, where toggles were
uneededly too small)
This commit is contained in:
poire-z
2019-01-15 20:39:33 +01:00
parent f533acb7f9
commit 77ec8e32e9
2 changed files with 87 additions and 36 deletions

View File

@@ -13,6 +13,7 @@ local Screen = Device.screen
local ButtonProgressWidget = InputContainer:new{
width = Screen:scaleBySize(216),
height = Size.item.height_default,
padding = Size.padding.small,
font_face = "cfont",
font_size = 16,
enabled = true,
@@ -26,7 +27,7 @@ function ButtonProgressWidget:init()
color = Blitbuffer.COLOR_GREY,
radius = Size.radius.window,
bordersize = 0,
padding = Size.padding.small,
padding = self.padding,
dim = not self.enabled,
}