mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
Optimize settings layout
This commit is contained in:
parent
e516fe04c4
commit
2b849f50d8
1 changed files with 4 additions and 4 deletions
|
@ -17,21 +17,21 @@ function mail.show_settings(name)
|
||||||
|
|
||||||
local formspec = [[
|
local formspec = [[
|
||||||
size[10,6;]
|
size[10,6;]
|
||||||
tabheader[0.3,0.875;optionstab;]] .. S("Settings") .. "," .. S("About") .. [[;1;false;false]
|
tabheader[0,0;optionstab;]] .. S("Settings") .. "," .. S("About") .. [[;1;false;false]
|
||||||
button[9.35,0;0.75,0.5;back;X]
|
button[9.35,0;0.75,0.5;back;X]
|
||||||
|
|
||||||
tablecolumns[text]
|
tablecolumns[text]
|
||||||
table[0,0.775;3,4.5;groups;]] .. groups_str .. [[;]] .. group_index .. [[]
|
table[0,0.775;3,4.5;groups;]] .. groups_str .. [[;]] .. group_index .. [[]
|
||||||
|
|
||||||
box[3.5,0.8;3,0.45;]] .. mail.get_color("highlighted") .. [[]
|
box[0,0;3,0.45;]] .. mail.get_color("highlighted") .. [[]
|
||||||
label[3.7,0.8;]] .. mail.settings_groups[group_index].label .. [[]
|
label[0.2,0;]] .. mail.settings_groups[group_index].label .. [[]
|
||||||
|
|
||||||
button[0,5.65;2.5,0.5;reset;]] .. S("Reset") .. [[]
|
button[0,5.65;2.5,0.5;reset;]] .. S("Reset") .. [[]
|
||||||
button[7.5,5.65;2.5,0.5;save;]] .. S("Save") .. [[]
|
button[7.5,5.65;2.5,0.5;save;]] .. S("Save") .. [[]
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local x = 3.5
|
local x = 3.5
|
||||||
local y = 1
|
local y = -0.6
|
||||||
-- put settings in order
|
-- put settings in order
|
||||||
local ordered_settings = {}
|
local ordered_settings = {}
|
||||||
for setting, data in pairs(mail.settings) do
|
for setting, data in pairs(mail.settings) do
|
||||||
|
|
Loading…
Add table
Reference in a new issue