Initial Notification Daemon Impl
This commit is contained in:
40
NotificationsWidget.qml
Normal file
40
NotificationsWidget.qml
Normal file
@@ -0,0 +1,40 @@
|
||||
import QtQuick
|
||||
import Quickshell.Widgets
|
||||
import qs.Services
|
||||
import qs.Common
|
||||
import Quickshell.Services.Notifications
|
||||
|
||||
Item {
|
||||
property var monitor: ""
|
||||
|
||||
MarginWrapperManager {
|
||||
rightMargin: Theme.gaps
|
||||
leftMargin: Theme.gaps
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
color: Theme.backgroudColor
|
||||
implicitWidth: clockText.implicitWidth * 1.6
|
||||
implicitHeight: Theme.heightGaps //root.implicitHeight*0.8
|
||||
radius: 25
|
||||
|
||||
Text {
|
||||
id: clockText
|
||||
|
||||
anchors.centerIn: parent
|
||||
text: "OPA!"
|
||||
font.bold: true
|
||||
font.pixelSize: 14
|
||||
font.family: Theme.fontFamily
|
||||
color: Theme.textColor
|
||||
}
|
||||
MouseArea{
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
console.log(Notifications.tracked)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user