notifications working (totally) perfectly

This commit is contained in:
2026-06-16 22:01:15 +01:00
parent 23407ea36b
commit 603da98035
9 changed files with 598 additions and 79 deletions

View File

@@ -0,0 +1,47 @@
import QtQuick
import Quickshell
import Quickshell.Services.Notifications
import "../../Color.js" as Colors
import "../../Components/"
import "../../Services/"
Item {
id: root
required property string body
required property string summary
Rectangle {
anchors.fill: parent
radius: 30
gradient: MidpointGradient {
color: Colors.green
midpoint: 0.7
}
}
Column {
anchors.centerIn: parent
spacing: 5
StyledText {
anchors.horizontalCenter: parent.horizontalCenter
font.pointSize: 11
text: root.summary
}
StyledText {
elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
text: root.body
verticalAlignment: Text.AlignVCenter
width: root.width - 20
font {
pointSize: 10
weight: 500
}
}
}
}