From cd4a8928b2634d826595d1acff529655fe4bb81d Mon Sep 17 00:00:00 2001 From: Gokul Swaminathan Date: Wed, 25 Nov 2020 03:16:06 -0800 Subject: [PATCH] Titlebar Theme Update Colors get darker when mouse is hovered over buttons. --- widget/tabbar/modern.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widget/tabbar/modern.lua b/widget/tabbar/modern.lua index 73d2de0..1b0d61f 100644 --- a/widget/tabbar/modern.lua +++ b/widget/tabbar/modern.lua @@ -50,6 +50,11 @@ local function create_title_button(c, color_focus, color_unfocus) c:connect_signal("focus", 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 return tb end