Redesign settings and about layout

This commit is contained in:
Athozus 2023-07-19 22:48:26 +02:00
parent 9990d56004
commit a9a4c8c4dc
No known key found for this signature in database
GPG Key ID: B50895022E8484BF
2 changed files with 9 additions and 9 deletions

View File

@ -6,13 +6,13 @@ local FORMNAME = "mail:about"
function mail.show_about(name)
local formspec = [[
size[10,6;]
tabheader[0.3,1;optionstab;]] .. S("Settings") .. "," .. S("About") .. [[;2;false;false]
tabheader[0.3,0.875;optionstab;]] .. S("Settings") .. "," .. S("About") .. [[;2;false;false]
button[9.35,0;0.75,0.5;back;X]
label[0,0.8;Mail]
label[0,1.2;]] .. S("Provided by mt-mods") .. [[]
label[0,1.6;]] .. S("Version") .. [[ : 1.3.0]
label[0,2.2;]] .. S("Licenses") .. [[ :]
label[0.2,2.6;]] .. S("Expat (code), WTFPL (textures)") .. [[]
label[0,0.7;Mail]
label[0,1.1;]] .. S("Provided by mt-mods") .. [[]
label[0,1.5;]] .. S("Version") .. [[ : 1.3.0]
label[0,2.0;]] .. S("Licenses") .. [[ :]
label[0.2,2.4;]] .. S("Expat (code), WTFPL (textures)") .. [[]
label[0,3.2;https://github.com/mt-mods/mail]
label[0,3.6;https://content.minetest.net/packages/mt-mods/mail]
textarea[0.5,4.8;4,5.5;;]] .. S("Note") .. [[;]] ..

View File

@ -18,7 +18,7 @@ function mail.show_settings(name)
local formspec = [[
size[10,6;]
tabheader[0.3,1;optionstab;]] .. S("Settings") .. "," .. S("About") .. [[;1;false;false]
tabheader[0.3,0.875;optionstab;]] .. S("Settings") .. "," .. S("About") .. [[;1;false;false]
button[9.35,0;0.75,0.5;back;X]
box[0,0.8;3,0.45;]] .. mail.colors.highlighted .. [[]
@ -63,8 +63,8 @@ function mail.show_settings(name)
tooltip[sound_notifications;]] .. S("Play a sound when there is a new message") .. [[]
tooltip[auto_marking_read;]] .. S("Mark a message as read when opened") .. [[]
button[0,5.5;2.5,0.5;save;]] .. S("Save") .. [[]
button[2.7,5.5;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") .. [[]
]] .. mail.theme
minetest.show_formspec(name, FORMNAME, formspec)