Skip to content

Commit 4d05c96

Browse files
authored
Merge pull request #433 from Luka5W/master
logout-menu: fixed widget button bg color, fixed rows fg color
2 parents c9c1d6b + e47db96 commit 4d05c96

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

logout-menu-widget/logout-menu.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ local logout_menu_widget = wibox.widget {
2626
layout = wibox.container.margin
2727
},
2828
shape = function(cr, width, height)
29-
gears.shape.rounded_rect(cr, width, height, 4)
29+
gears.shape.rounded_rect(cr, width, height, 4)
3030
end,
3131
widget = wibox.container.background,
3232
}
@@ -86,12 +86,13 @@ local function worker(user_args)
8686
margins = 8,
8787
layout = wibox.container.margin
8888
},
89+
fg = beautiful.fg_normal,
8990
bg = beautiful.bg_normal,
9091
widget = wibox.container.background
9192
}
9293

93-
row:connect_signal("mouse::enter", function(c) c:set_bg(beautiful.bg_focus) end)
94-
row:connect_signal("mouse::leave", function(c) c:set_bg(beautiful.bg_normal) end)
94+
row:connect_signal("mouse::enter", function(c) c:set_bg(beautiful.bg_focus) c:set_fg(beautiful.fg_focus) end)
95+
row:connect_signal("mouse::leave", function(c) c:set_bg(beautiful.bg_normal) c:set_fg(beautiful.fg_normal) end)
9596

9697
local old_cursor, old_wibox
9798
row:connect_signal("mouse::enter", function()
@@ -108,6 +109,7 @@ local function worker(user_args)
108109

109110
row:buttons(awful.util.table.join(awful.button({}, 1, function()
110111
popup.visible = not popup.visible
112+
logout_menu_widget:set_bg('#00000000')
111113
item.command()
112114
end)))
113115

0 commit comments

Comments
 (0)