mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-11 09:16:14 +02:00
Finalized the Notification Center backend
This commit is contained in:
1 parent
d67367e4df
commit
e31c2aff63
5 files changed
+77
-71
No files matched your search
@@ -5,6 +5,7 @@ import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import "." as Notifs
|
||||
import "../theme" as Theme
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
@@ -16,15 +17,15 @@ Singleton {
|
||||
implicitHeight: notificationCenter.height
|
||||
anchors.right: notificationCenter.right
|
||||
anchors.top: notificationCenter.top
|
||||
color: Theme.Colors.notificationCenterColor1 // needs to be set. Do not delete
|
||||
|
||||
Notifs.NotificationCenterView {
|
||||
id: notificationCenter
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
//width: 500
|
||||
//anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
color: Theme.Colors.notificationCenterColor2
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
@@ -35,5 +36,9 @@ Singleton {
|
||||
if (window.visible)
|
||||
notificationCenter.reload()
|
||||
}
|
||||
}
|
||||
|
||||
function init() {
|
||||
// empty function to define first reference to singleton. Do not delete. It will break.
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user