From 99a7ebaeb63bbf7cf9721af9bbe8529a78357413 Mon Sep 17 00:00:00 2001 From: chrox Date: Mon, 24 Dec 2012 16:55:10 +0800 Subject: [PATCH] larger option text in paperwhite --- frontend/ui/config.lua | 6 ++++-- frontend/ui/reader/readerconfig.lua | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/ui/config.lua b/frontend/ui/config.lua index dcbad462e..69495c770 100644 --- a/frontend/ui/config.lua +++ b/frontend/ui/config.lua @@ -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) diff --git a/frontend/ui/reader/readerconfig.lua b/frontend/ui/reader/readerconfig.lua index e7f3fab04..a2e98c421 100644 --- a/frontend/ui/reader/readerconfig.lua +++ b/frontend/ui/reader/readerconfig.lua @@ -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,