|
|
|
@ -171,7 +171,7 @@ function ToggleSwitch:init()
|
|
|
|
|
self.position = nil
|
|
|
|
|
|
|
|
|
|
local label_font_face = "cfont"
|
|
|
|
|
local label_font_size = math.floor(16*Screen:getDPI()/167)
|
|
|
|
|
local label_font_size = 16
|
|
|
|
|
|
|
|
|
|
self.toggle_frame = FrameContainer:new{background = 0, color = 7, radius = 7, bordersize = 1, padding = 2,}
|
|
|
|
|
self.toggle_content = HorizontalGroup:new{}
|
|
|
|
@ -302,12 +302,11 @@ end
|
|
|
|
|
|
|
|
|
|
ConfigOption = CenterContainer:new{}
|
|
|
|
|
function ConfigOption:init()
|
|
|
|
|
local mag_ratio = Screen:getDPI()/167
|
|
|
|
|
local default_name_font_size = math.floor(20*mag_ratio)
|
|
|
|
|
local default_item_font_size = math.floor(16*mag_ratio)
|
|
|
|
|
local default_items_spacing = math.floor(30*mag_ratio)
|
|
|
|
|
local default_option_height = math.floor(50*mag_ratio)
|
|
|
|
|
local default_option_padding = math.floor(15*mag_ratio)
|
|
|
|
|
local default_name_font_size = 20
|
|
|
|
|
local default_item_font_size = 16
|
|
|
|
|
local default_items_spacing = 30
|
|
|
|
|
local default_option_height = 50
|
|
|
|
|
local default_option_padding = 15
|
|
|
|
|
local vertical_group = VerticalGroup:new{}
|
|
|
|
|
table.insert(vertical_group, VerticalSpan:new{ width = default_option_padding })
|
|
|
|
|
for c = 1, #self.options do
|
|
|
|
|