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