Skip to content

Commit

Permalink
Redesign settings and about layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Athozus committed Jul 19, 2023
1 parent 9990d56 commit a9a4c8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions ui/about.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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") .. [[;]] ..
Expand Down
6 changes: 3 additions & 3 deletions ui/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 .. [[]
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a9a4c8c

Please sign in to comment.