mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user