worked on QML and other minor details

This commit is contained in:
Tomas Rivera
2026-03-14 18:53:29 +01:00
parent 1525781f35
commit e513f4c797
14 changed files with 351 additions and 16 deletions
@@ -0,0 +1,44 @@
pragma Singleton
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Io
import "." as Notifs
Singleton {
id: root
property bool isOpen: false
IpcHandler {
target: "notifications"
function open() {
root.isOpen = true
}
function close() {
root.isOpen = false
}
function toggle() {
root.isOpen = !root.isOpen
}
}
LazyLoader {
id: loader
active: root.isOpen
Notifs.NotificationCenterView {
id: notificationCenter
anchors.centerIn: parent
width: 1000
height: 800
visible: true
}
}
function init() {
// Empty init function to ensure singleton is loaded
}
}