Small decrease of ToggleSwitches width

Just to add some margin, needed on large screen DPI
pull/3495/head
poire-z 7 years ago committed by Frans de Jonge
parent 445926ab1c
commit 8192a2f947

@ -399,7 +399,7 @@ function ConfigOption:init()
end
if self.options[c].toggle then
local max_toggle_width = Screen:getWidth() * item_align * 0.95
local max_toggle_width = Screen:getWidth() * item_align * 0.85
local toggle_width = Screen:scaleBySize(self.options[c].width or max_toggle_width)
local row_count = self.options[c].row_count or 1
local toggle_height = Screen:scaleBySize(self.options[c].height
@ -427,7 +427,7 @@ function ConfigOption:init()
end
if self.options[c].buttonprogress then
local max_buttonprogress_width = Screen:getWidth() * item_align * 0.95
local max_buttonprogress_width = Screen:getWidth() * item_align * 0.85
local buttonprogress_width = Screen:scaleBySize(self.options[c].width or max_buttonprogress_width)
local switch = ButtonProgressWidget:new{
width = math.min(max_buttonprogress_width, buttonprogress_width),

Loading…
Cancel
Save