mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
notifications: right click to expand, don't hide if hovered
This commit is contained in:
parent
f24e8e1cd5
commit
af94e143e1
1 changed files with 7 additions and 1 deletions
|
|
@ -145,6 +145,12 @@ export default ({
|
|||
onMiddleClick: (self) => {
|
||||
destroyWithAnims();
|
||||
},
|
||||
onSecondaryClick: (self) => {
|
||||
expanded = !expanded;
|
||||
notifTextPreview.revealChild = !expanded;
|
||||
notifTextExpanded.revealChild = expanded;
|
||||
notifExpandButton.child.label = `expand_${expanded ? 'less' : 'more'}`;
|
||||
},
|
||||
setup: (self) => {
|
||||
self.on("button-press-event", () => {
|
||||
wholeThing.attribute.held = true;
|
||||
|
|
@ -471,7 +477,7 @@ export default ({
|
|||
widget.add(notificationBox);
|
||||
wholeThing.child.children = [widget];
|
||||
if (isPopup) Utils.timeout(popupTimeout, () => {
|
||||
if (wholeThing) {
|
||||
if (wholeThing && !wholeThing.attribute.hovered) {
|
||||
wholeThing.revealChild = false;
|
||||
Utils.timeout(userOptions.animations.durationSmall, () => {
|
||||
if (wholeThing) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue