Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logout-menu: fixed widget button bg color, fixed rows fg color #433

Merged
merged 2 commits into from
Oct 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions logout-menu-widget/logout-menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ local logout_menu_widget = wibox.widget {
layout = wibox.container.margin
},
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, 4)
gears.shape.rounded_rect(cr, width, height, 4)
end,
widget = wibox.container.background,
}
Expand Down Expand Up @@ -86,12 +86,13 @@ local function worker(user_args)
margins = 8,
layout = wibox.container.margin
},
fg = beautiful.fg_normal,
bg = beautiful.bg_normal,
widget = wibox.container.background
}

row:connect_signal("mouse::enter", function(c) c:set_bg(beautiful.bg_focus) end)
row:connect_signal("mouse::leave", function(c) c:set_bg(beautiful.bg_normal) end)
row:connect_signal("mouse::enter", function(c) c:set_bg(beautiful.bg_focus) c:set_fg(beautiful.fg_focus) end)
row:connect_signal("mouse::leave", function(c) c:set_bg(beautiful.bg_normal) c:set_fg(beautiful.fg_normal) end)

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

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

Expand Down
Loading