make notifications hide on click
This commit is contained in:
parent
2a8070cc08
commit
4763fc0624
@ -21,8 +21,11 @@ local notification_icon = function(n)
|
||||
end
|
||||
|
||||
local make_notification = function(n)
|
||||
print(n:get_urgency())
|
||||
local layout = Widget.Box({
|
||||
local layout = Widget.Button({
|
||||
on_clicked = function(self)
|
||||
self:get_parent():set_reveal_child(false)
|
||||
end,
|
||||
child = Widget.Box({
|
||||
children = {
|
||||
Widget.Box({
|
||||
vertical = true,
|
||||
@ -72,6 +75,7 @@ local make_notification = function(n)
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
return Widget.Revealer({
|
||||
transition_type = 'SLIDE_DOWN',
|
||||
|
@ -1,6 +1,6 @@
|
||||
.notifications {
|
||||
> * {
|
||||
> box {
|
||||
> button > box {
|
||||
margin: 10px 15px;
|
||||
border: 1px solid $fg;
|
||||
background: $bg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user