@@ -58,11 +58,11 @@ local function worker(user_args)
58
58
local onpoweroff = args .onpoweroff or function () awful .spawn .with_shell (" shutdown now" ) end
59
59
60
60
local menu_items = {
61
- { name = ' Log out' , icon_name = ' log-out.svg' , command = onlogout },
62
- { name = ' Lock' , icon_name = ' lock.svg' , command = onlock },
63
- { name = ' Reboot' , icon_name = ' refresh-cw.svg' , command = onreboot },
64
- { name = ' Suspend' , icon_name = ' moon.svg' , command = onsuspend },
65
- { name = ' Power off' , icon_name = ' power.svg' , command = onpoweroff },
61
+ { name = ' Log out' , icon_name = ' log-out.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onlogout () end },
62
+ { name = ' Lock' , icon_name = ' lock.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onlock () end },
63
+ { name = ' Reboot' , icon_name = ' refresh-cw.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onreboot () end },
64
+ { name = ' Suspend' , icon_name = ' moon.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onsuspend () end },
65
+ { name = ' Power off' , icon_name = ' power.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onpoweroff () end },
66
66
}
67
67
68
68
for _ , item in ipairs (menu_items ) do
@@ -86,12 +86,13 @@ local function worker(user_args)
86
86
margins = 8 ,
87
87
layout = wibox .container .margin
88
88
},
89
+ fg = beautiful .fg_normal ,
89
90
bg = beautiful .bg_normal ,
90
91
widget = wibox .container .background
91
92
}
92
93
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 )
95
96
96
97
local old_cursor , old_wibox
97
98
row :connect_signal (" mouse::enter" , function ()
0 commit comments