mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add width param in ToggleSwitch
This commit is contained in:
@@ -24,6 +24,7 @@ KoptOptions = {
|
||||
{
|
||||
name = "trim_page",
|
||||
name_text = PAGE_CROP_STR,
|
||||
width = 225,
|
||||
toggle = {MANUAL_STR, AUTO_STR, SEMIAUTO_STR},
|
||||
alternate = false,
|
||||
values = {0, 1, 2},
|
||||
|
||||
@@ -323,6 +323,7 @@ function ConfigOption:init()
|
||||
|
||||
if self.options[c].toggle then
|
||||
local switch = ToggleSwitch:new{
|
||||
width = scaleByDPI(self.options[c].width or 216),
|
||||
name = self.options[c].name,
|
||||
toggle = self.options[c].toggle,
|
||||
alternate = self.options[c].alternate,
|
||||
|
||||
Reference in New Issue
Block a user