Titlebar Theme Update

Colors get darker when mouse is hovered over buttons.
This commit is contained in:
Gokul Swaminathan 2020-11-25 03:16:06 -08:00
parent b2c8adc23c
commit cd4a8928b2
1 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,11 @@ local function create_title_button(c, color_focus, color_unfocus)
c:connect_signal("focus", update) c:connect_signal("focus", update)
c:connect_signal("unfocus", update) c:connect_signal("unfocus", update)
tb:connect_signal("mouse::enter",
function() tb_color.bg = color_focus .. "70" end)
tb:connect_signal("mouse::leave", function() tb_color.bg = color_focus end)
tb.visible = true tb.visible = true
return tb return tb
end end