Compare commits
No commits in common. "d6b1a7ae581f814346a3b0dcdfb496a439841a79" and "fc930af43c23bab224758b5e0a63ca83b7e92cdf" have entirely different histories.
d6b1a7ae58
...
fc930af43c
4 changed files with 5 additions and 10 deletions
|
|
@ -81,7 +81,6 @@
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
clippy
|
clippy
|
||||||
rustfmt
|
rustfmt
|
||||||
libnotify
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ M.HoverPanel {
|
||||||
const ic = notifDelegate.modelData.appIcon;
|
const ic = notifDelegate.modelData.appIcon;
|
||||||
if (!ic)
|
if (!ic)
|
||||||
return "";
|
return "";
|
||||||
return (ic.startsWith("/") || ic.startsWith("file://")) ? ic : Quickshell.iconPath(ic, "dialog-information");
|
return ic.startsWith("/") ? ic : Quickshell.iconPath(ic, "dialog-information");
|
||||||
}
|
}
|
||||||
visible: status === Image.Ready
|
visible: status === Image.Ready
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
@ -382,7 +382,7 @@ M.HoverPanel {
|
||||||
const ic = notifDelegate._notif?.appIcon;
|
const ic = notifDelegate._notif?.appIcon;
|
||||||
if (!ic)
|
if (!ic)
|
||||||
return "";
|
return "";
|
||||||
return (ic.startsWith("/") || ic.startsWith("file://")) ? ic : Quickshell.iconPath(ic, "dialog-information");
|
return ic.startsWith("/") ? ic : Quickshell.iconPath(ic, "dialog-information");
|
||||||
}
|
}
|
||||||
visible: status === Image.Ready
|
visible: status === Image.Ready
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
@ -437,7 +437,7 @@ M.HoverPanel {
|
||||||
// Actions
|
// Actions
|
||||||
Row {
|
Row {
|
||||||
spacing: 4
|
spacing: 4
|
||||||
visible: !!(notifDelegate._notif?.actions?.length)
|
visible: notifDelegate._notif?.actions && notifDelegate._notif.actions.length > 0
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: notifDelegate._notif?.actions ?? []
|
model: notifDelegate._notif?.actions ?? []
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ PanelWindow {
|
||||||
const ic = popupItem.modelData.appIcon;
|
const ic = popupItem.modelData.appIcon;
|
||||||
if (!ic)
|
if (!ic)
|
||||||
return "";
|
return "";
|
||||||
return (ic.startsWith("/") || ic.startsWith("file://")) ? ic : Quickshell.iconPath(ic, "dialog-information");
|
return ic.startsWith("/") ? ic : Quickshell.iconPath(ic, "dialog-information");
|
||||||
}
|
}
|
||||||
visible: status === Image.Ready
|
visible: status === Image.Ready
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Services.Notifications
|
|
||||||
import "." as M
|
import "." as M
|
||||||
|
|
||||||
M.BarSection {
|
M.BarSection {
|
||||||
|
|
@ -15,8 +14,6 @@ M.BarSection {
|
||||||
|
|
||||||
required property var bar
|
required property var bar
|
||||||
|
|
||||||
readonly property bool hasUrgent: M.NotifService.list.some(n => n.urgency === NotificationUrgency.Critical && n.state !== "dismissed")
|
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: {
|
icon: {
|
||||||
if (M.NotifService.dnd)
|
if (M.NotifService.dnd)
|
||||||
|
|
@ -28,8 +25,7 @@ M.BarSection {
|
||||||
}
|
}
|
||||||
M.BarLabel {
|
M.BarLabel {
|
||||||
id: countLabel
|
id: countLabel
|
||||||
label: M.NotifService.count > 0 ? String(M.NotifService.count) + (root.hasUrgent ? "!" : "") : ""
|
label: M.NotifService.count > 0 ? String(M.NotifService.count) : ""
|
||||||
color: root.hasUrgent ? M.Theme.base08 : root.accentColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
transform: Scale {
|
transform: Scale {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue