Titlebar Theme Update
Colors get darker when mouse is hovered over buttons.
This commit is contained in:
parent
b2c8adc23c
commit
cd4a8928b2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue