mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
larger option text in paperwhite
This commit is contained in:
@@ -105,7 +105,7 @@ end
|
||||
ConfigOption = CenterContainer:new{dimen = Geom:new{ w = Screen:getWidth(), h = math.floor(150*Screen:getWidth()/600)}}
|
||||
function ConfigOption:init()
|
||||
local default_name_font_size = math.floor(20*Screen:getWidth()/600)
|
||||
local default_item_font_size = math.floor(16*Screen:getWidth()/600)
|
||||
local default_item_font_size = math.floor(20*Screen:getWidth()/600)
|
||||
local default_items_spacing = math.floor(30*Screen:getWidth()/600)
|
||||
local default_option_height = math.floor(30*Screen:getWidth()/600)
|
||||
local vertical_group = VerticalGroup:new{}
|
||||
@@ -203,7 +203,9 @@ function ConfigOption:init()
|
||||
option_item.current_item = d
|
||||
option_item.config = self.config
|
||||
table.insert(option_items_group, option_item)
|
||||
table.insert(option_items_group, items_spacing)
|
||||
if d ~= #self.options[c].item_text then
|
||||
table.insert(option_items_group, items_spacing)
|
||||
end
|
||||
end
|
||||
table.insert(option_items_container, option_items_group)
|
||||
table.insert(horizontal_group, option_items_container)
|
||||
|
||||
@@ -95,7 +95,7 @@ KOPTOptions = {
|
||||
item_text = {"Aa","Aa","Aa","Aa","Aa","Aa","Aa","Aa","Aa","Aa"},
|
||||
item_align_center = 1.0,
|
||||
spacing = Screen:getWidth()*0.03,
|
||||
item_font_size = {14,16,20,23,26,30,34,38,42,46},
|
||||
item_font_size = {20,24,28,32,36,38,40,42,46,50},
|
||||
values = {0.2, 0.3, 0.4, 0.6, 0.8, 1.0, 1.2, 1.6, 2.2, 2.8},
|
||||
default_value = 1.0,
|
||||
},
|
||||
@@ -109,6 +109,7 @@ KOPTOptions = {
|
||||
name_text = "Contrast",
|
||||
name_align_right = 0.2,
|
||||
item_text = {"lightest", "lighter", "default", "darker", "darkest"},
|
||||
item_font_size = math.floor(18*Screen:getWidth()/600),
|
||||
item_align_center = 0.8,
|
||||
values = {2.0, 1.5, 1.0, 0.5, 0.2},
|
||||
default_value = 1.0,
|
||||
|
||||
Reference in New Issue
Block a user