Merge pull request #735 from chrox/ui-tweaks

set menu font size according to screen dpi
This commit is contained in:
{Qingping,Dave} Hou
2013-02-05 19:40:54 -08:00
18 changed files with 131 additions and 14 deletions

View File

@@ -67,14 +67,24 @@ KoptOptions = {
{
name = "max_columns",
name_text = "Columns",
item_text = {"1","2","3","4"},
values = {1,2,3,4},
item_icons = {
"resources/icons/appbar.column.one.png",
"resources/icons/appbar.column.two.png",
"resources/icons/appbar.column.three.png",
},
values = {1,2,3},
default_value = 2,
},
{
name = "justification",
name_text = "Justification",
item_text = {"auto","left","center","right","full"},
name_text = "Text Align",
item_icons = {
"resources/icons/appbar.align.auto.png",
"resources/icons/appbar.align.left.png",
"resources/icons/appbar.align.center.png",
"resources/icons/appbar.align.right.png",
"resources/icons/appbar.align.justify.png",
},
values = {-1,0,1,2,3},
default_value = -1,
},
@@ -102,7 +112,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_font_size = 18,
item_align_center = 0.8,
values = {2.0, 1.5, 1.0, 0.5, 0.2},
default_value = 1.0,