diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2021-06-03 20:55:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 20:55:53 -0400 |
commit | 7c0ec6ee7d98d0dc7fd01c91ac343a2fd8384d58 (patch) | |
tree | 839329af038f59cb2ac049b68d39fa59ca222d6b | |
parent | f3df69074328b3fe48d86e0948ecb64adeb997d0 (diff) |
fix lua check
-rw-r--r-- | logout-popup-widget/logout-popup.lua | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/logout-popup-widget/logout-popup.lua b/logout-popup-widget/logout-popup.lua index 4d85a8f..80d36e0 100644 --- a/logout-popup-widget/logout-popup.lua +++ b/logout-popup-widget/logout-popup.lua @@ -54,9 +54,10 @@ local function create_button(icon_name, action_name, accent_color, label_color, capi.keygrabber.stop() end } - button:connect_signal("mouse::enter", - function() action:set_markup('<span color="' .. label_color .. '">' .. action_name .. '</span>') end) - + button:connect_signal("mouse::enter", function() + action:set_markup('<span color="' .. label_color .. '">' .. action_name .. '</span>') + end) + button:connect_signal("mouse::leave", function() action:set_markup('<span> </span>') end) return button @@ -90,11 +91,16 @@ local function launch(args) phrase_widget, { { - create_button('log-out', 'Log Out (l)', accent_color, label_color, onlogout, icon_size, icon_margin), - create_button('lock', 'Lock (k)', accent_color, label_color, onlock, icon_size, icon_margin), - create_button('refresh-cw', 'Reboot (r)', accent_color, label_color, onreboot, icon_size, icon_margin), - create_button('moon', 'Suspend (u)', accent_color, label_color, onsuspend, icon_size, icon_margin), - create_button('power', 'Power Off (s)', accent_color, label_color, onpoweroff, icon_size, icon_margin), + create_button('log-out', 'Log Out (l)', + accent_color, label_color, onlogout, icon_size, icon_margin), + create_button('lock', 'Lock (k)', + accent_color, label_color, onlock, icon_size, icon_margin), + create_button('refresh-cw', 'Reboot (r)', + accent_color, label_color, onreboot, icon_size, icon_margin), + create_button('moon', 'Suspend (u)', + accent_color, label_color, onsuspend, icon_size, icon_margin), + create_button('power', 'Power Off (s)', + accent_color, label_color, onpoweroff, icon_size, icon_margin), id = 'buttons', spacing = 8, layout = wibox.layout.fixed.horizontal |