import Quickshell
import Quickshell.Io
import Quickshell.Hyprland
import QtQuick
import "Shell"
import "Shell/Overlays"
import "Shell/Notifications"

ShellRoot {
    id: baseShell

    property bool isOpen: ShellStateManager.shellOpen

    Overlay {}
    NotificationLayer {}

    Topbar {}
    Healthbar {}
    DialogBox {}
    MprisOverlay {}

    InputShortcuts {}

    IpcHandler {
        target: "deltarune.shell"
        enabled: true
        function open(): void {
            ShellStateManager.openShell();
        }
        function close(): void {
            ShellStateManager.closeShell();
        }
    }
}
