Some skinning
This commit is contained in:
parent
54f5c9c400
commit
0609e62530
@ -27,6 +27,7 @@ laptop.register_app("mail", {
|
|||||||
|
|
||||||
app.app_info = app.app_info.." - Welcome "..mtos.sysram.last_player
|
app.app_info = app.app_info.." - Welcome "..mtos.sysram.last_player
|
||||||
local formspec = mtos.theme:get_tableoptions()..
|
local formspec = mtos.theme:get_tableoptions()..
|
||||||
|
"background[-0.19,0.23;15.38,10.275;"..mtos.theme.bgcolor2.."]"..--full window background
|
||||||
"tablecolumns[" ..
|
"tablecolumns[" ..
|
||||||
"image,align=center,1=laptop_mail.png,2=laptop_mail_read.png;".. --icon column
|
"image,align=center,1=laptop_mail.png,2=laptop_mail_read.png;".. --icon column
|
||||||
"color;".. -- subject and date color
|
"color;".. -- subject and date color
|
||||||
@ -42,11 +43,11 @@ laptop.register_app("mail", {
|
|||||||
end
|
end
|
||||||
-- set read/unread status
|
-- set read/unread status
|
||||||
if account.selected_box == "sentbox" then
|
if account.selected_box == "sentbox" then
|
||||||
formspec = formspec .. "1,#88FF88," -- unread
|
formspec = formspec .. "1,"..mtos.theme.muted_textcolor.."," -- unread
|
||||||
elseif not message.is_read then
|
elseif not message.is_read then
|
||||||
formspec = formspec .. "1,#FFFFFF," -- unread
|
formspec = formspec .. "1,"..mtos.theme.table_textcolor.."," -- unread
|
||||||
else
|
else
|
||||||
formspec = formspec .. "2,#888888," -- read
|
formspec = formspec .. "1,"..mtos.theme.muted_textcolor.."," -- read
|
||||||
end
|
end
|
||||||
|
|
||||||
-- set subject
|
-- set subject
|
||||||
@ -114,8 +115,8 @@ laptop.register_app("mail", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
formspec = formspec .. mtos.theme:get_label('8,1', "Subject: "..(account.selectedmessage.subject or ""))..
|
formspec = formspec .. mtos.theme:get_label('8,1', "Subject: "..(account.selectedmessage.subject or ""))..
|
||||||
"background[8,1.55;6.92,7.3;"..mtos.theme.contrast_background.."]"..
|
"background[8,1.55;6.92,7.3;"..mtos.theme.bgcolor1.."]"..
|
||||||
"textarea[8.35,1.6;6.8,8.25;;"..(minetest.formspec_escape(account.selectedmessage.body) or "")..";]"
|
"textarea[8.35,1.6;6.8,8.25;;"..minetest.colorize(mtos.theme.table_textcolor, minetest.formspec_escape(account.selectedmessage.body) or "")..";]"
|
||||||
end
|
end
|
||||||
return formspec
|
return formspec
|
||||||
end,
|
end,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user