forked from Shinonome/dots-hyprland
notif add link click
This commit is contained in:
@@ -195,6 +195,17 @@ Item { // Notification item area
|
|||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
text: `<style>img{max-width:${notificationBodyText.width}px;}</style>` +
|
text: `<style>img{max-width:${notificationBodyText.width}px;}</style>` +
|
||||||
`${notificationObject.body.replace(/\n/g, "<br/>")}`
|
`${notificationObject.body.replace(/\n/g, "<br/>")}`
|
||||||
|
|
||||||
|
onLinkActivated: (link) => {
|
||||||
|
Qt.openUrlExternally(link)
|
||||||
|
Hyprland.dispatch("global quickshell:sidebarRightClose")
|
||||||
|
}
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.NoButton // Only for hover
|
||||||
|
hoverEnabled: true
|
||||||
|
cursorShape: parent.hoveredLink !== "" ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Flickable { // Notification actions
|
Flickable { // Notification actions
|
||||||
|
|||||||
Reference in New Issue
Block a user