Optimize settings layout

This commit is contained in:
Athozus 2024-03-24 18:20:02 +01:00
parent e516fe04c4
commit 2b849f50d8
No known key found for this signature in database
GPG key ID: B50895022E8484BF

View file

@ -17,21 +17,21 @@ function mail.show_settings(name)
local formspec = [[
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]
tablecolumns[text]
table[0,0.775;3,4.5;groups;]] .. groups_str .. [[;]] .. group_index .. [[]
box[3.5,0.8;3,0.45;]] .. mail.get_color("highlighted") .. [[]
label[3.7,0.8;]] .. mail.settings_groups[group_index].label .. [[]
box[0,0;3,0.45;]] .. mail.get_color("highlighted") .. [[]
label[0.2,0;]] .. mail.settings_groups[group_index].label .. [[]
button[0,5.65;2.5,0.5;reset;]] .. S("Reset") .. [[]
button[7.5,5.65;2.5,0.5;save;]] .. S("Save") .. [[]
]]
local x = 3.5
local y = 1
local y = -0.6
-- put settings in order
local ordered_settings = {}
for setting, data in pairs(mail.settings) do