Tweak color scheme
parent
3c58dcbba2
commit
d69424c7b9
9
gui.lua
9
gui.lua
|
@ -7,9 +7,10 @@ end
|
|||
local F = minetest.formspec_escape
|
||||
|
||||
local COLOR_HOLIDAY = "#00FF00"
|
||||
local COLOR_DAYBOX_HOLIDAY = "#00200080"
|
||||
local COLOR_DAYBOX = "#00000080"
|
||||
local COLOR_DAYBOX_TODAY = "#FFFFFF80"
|
||||
local COLOR_DAYBOX_HOLIDAY = "#00940FFF"
|
||||
local COLOR_DAYBOX = "#1A1A1AFF"
|
||||
local COLOR_DAYBOX_TODAY = "#FFF508FF"
|
||||
local COLOR_TOOLTIP_TODAY = COLOR_DAYBOX_TODAY
|
||||
|
||||
local player_current_calendars = {}
|
||||
|
||||
|
@ -89,7 +90,7 @@ function calendar.show_calendar(player_name, settings, wanted_months, wanted_yea
|
|||
day_str = F(day_str)
|
||||
if tdays == total_days then
|
||||
formspec = formspec .. "box["..(x-0.05)..","..(y-0.05)..";1.1,1.1;"..COLOR_DAYBOX_TODAY.."]"
|
||||
table.insert(tooltip_lines, S("Today"))
|
||||
table.insert(tooltip_lines, minetest.colorize(COLOR_TOOLTIP_TODAY, S("Today")))
|
||||
end
|
||||
formspec = formspec .. "box["..x..","..y..";1,1;"..box_color.."]" ..
|
||||
"label["..(x+0.15)..","..(y+0.3)..";"..day_str.."]"
|
||||
|
|
Loading…
Reference in New Issue