solve multiline text border

master
Alexander Weber 2018-03-22 07:59:26 +01:00
parent 8882ac47fb
commit eb1af5c6b8
7 changed files with 2 additions and 7 deletions

1
API.md
View File

@ -168,7 +168,6 @@ The most colors are grouped by "prefixes". Each prefix means a specific content
- table - Colorize the table-like output
- `table_bgcolor` - Table background color
- `table_background` - The table background color as texture
- `table_textcolor` - Table text color
- table_highlight - Colorize the selection in tables
- `table_highlight_bgcolor` - Table highlighted background

View File

@ -114,7 +114,7 @@ laptop.register_app("mail", {
end
formspec = formspec .. mtos.theme:get_label('8,1', "Subject: "..(account.selectedmessage.subject or ""))..
"background[8,1.55;6.92,7.3;"..mtos.theme.table_background.."]"..
mtos.theme:get_tableoptions(false).."tablecolumns[text]table[8,1.55;6.85,7.15;preview_bg;]"..
"textarea[8.35,1.6;6.8,8.25;;"..minetest.colorize(mtos.theme.table_textcolor, minetest.formspec_escape(account.selectedmessage.body) or "")..";]"
end
return formspec

View File

@ -257,7 +257,7 @@ laptop.register_view("printer:app", {
formspec = formspec .. mtos.theme:get_bgcolor_box("7.15,0.4;7.6,1","contrast")..
mtos.theme:get_label('7.3,0.6','Heading:','contrast').."field[9.7,0.7;5,1;label;;"..minetest.formspec_escape(param.label or "").."]"..
mtos.theme:get_label('9.7,1.7'," by "..(mtos.sysram.current_player or ""))..
"background[7.15,2.55;7.6,6.0;"..mtos.theme.table_background.."]"..
mtos.theme:get_tableoptions(false).."tablecolumns[text]table[7.15,2.5;7.6,6.0;preview_bg;]"..
"textarea[7.5,2.5;7.5,7;;"..minetest.colorize(mtos.theme.table_textcolor, (minetest.formspec_escape(param.text) or ""))..";]"
return formspec

View File

@ -22,7 +22,6 @@ laptop.themes = {
status_disabled_textcolor = "#FF0000",
status_off_textcolor = "#888888",
table_bgcolor = "#ffffff",
table_background = "laptop_theme_desktop_icon_label_button_white.png",
table_textcolor = "#000000",
table_highlight_bgcolor = '#cde6f7',
table_highlight_textcolor = '#000000',

View File

@ -17,7 +17,6 @@ laptop.register_theme("Amber Shell", {
textcolor = "#FFB000",
monochrome_textcolor = "#FFB000",
table_bgcolor = "#FFB000",
table_background = "laptop_theme_ambershell_desktop_icon_label_button.png",
table_highlight_bgcolor = '#a77200',
table_highlight_textcolor = '#000000',
muted_textcolor = "#6b4900",

View File

@ -6,7 +6,6 @@ laptop.register_theme("Cubic", {
exit_button = "laptop_theme_cubic_exit_button.png",
desktop_icon_button = "laptop_theme_cubic_desktop_icon_button.png",
table_bgcolor = "#555555",
table_background = "laptop_theme_desktop_icon_label_button_grey.png",
table_highlight_bgcolor='#0c1c4f',
table_highlight_textcolor = '#ffffff',
table_textcolor = "#ffffff",

View File

@ -18,7 +18,6 @@ laptop.register_theme("Green Shell", {
textcolor = "#00FF33",
monochrome_textcolor = "#00FF33",
table_highlight_bgcolor = '#00b71a',
table_background = "laptop_theme_greenshell_desktop_icon_label_button.png",
table_highlight_textcolor = '#000000',
muted_textcolor = "#00540b",
status_online_textcolor = "#000000",