ported some quickshell stuff from rivendell-hyprdots

This commit is contained in:
Tomas Rivera
2026-03-10 16:22:35 +01:00
parent 4b442dd121
commit b9e3f35abe
80 changed files with 4462 additions and 9 deletions
+70
View File
@@ -0,0 +1,70 @@
// This is how the notification looks
import QtQuick
import QtQuick.Layouts
import Quickshell.Services.Notifications
Item {
id: root
required property Notification notif
implicitWidth: 240
implicitHeight: layout.height
ColumnLayout {
id: layout
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
spacing: 0
Image {
id: trumpetTop
Layout.fillWidth: true
Layout.preferredHeight: width * (sourceSize.height / sourceSize.width)
source: "../assets/trumpet-top.png"
smooth: false
}
Rectangle {
id: bannerRect
color: "#3B253F"
Layout.fillWidth: true
implicitHeight: textColumn.height
Layout.leftMargin: (width / trumpetTop.sourceSize.width) * 2 + 3
Layout.rightMargin: (width / trumpetTop.sourceSize.width) * 2 + 3
ColumnLayout {
id: textColumn
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
Text {
Layout.maximumWidth: bannerRect.width
text: root.notif.summary + (root.notif.body ? "\n=======" : "")
font.family: "BigBlueTermPlusNerdFont"
wrapMode: Text.Wrap
font.pointSize: 18
font.bold: true
color: "#9292B6"
}
Text {
Layout.maximumWidth: bannerRect.width
text: root.notif.body
font.family: "BigBlueTermPlusNerdFont"
wrapMode: Text.Wrap
font.pointSize: 14
font.bold: false
color: "#9292B6"
}
}
}
}
}