import QtQuick import QtQuick.Layouts import Quickshell import Quickshell.Wayland import "." PanelWindow { id: root required property QtObject theme required property QtObject commands property bool shown: false property bool idleInhibited: false // Keep the bar opt-in until all parity rows pass and Ironbar can be retired. visible: shown anchors { top: true; left: true; right: true } implicitHeight: 30 color: "transparent" IdleInhibitor { // Attach inhibition to the real bar window; no hypridle.conf mutation needed. window: root enabled: root.idleInhibited } // Match the Nugu/Ironbar visual language: translucent semantic backdrop plus // a hard accent line. This keeps screenshots comparable during parity checks. Rectangle { anchors.fill: parent color: `${root.theme.ui.backdrop}ee` } Rectangle { anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom height: 2 color: root.theme.ui.accent } RowLayout { anchors.fill: parent anchors.leftMargin: 20 anchors.rightMargin: 20 anchors.topMargin: 0 anchors.bottomMargin: 2 spacing: 8 RowLayout { Layout.fillWidth: true Layout.alignment: Qt.AlignVCenter spacing: 10 ClipboardWidget { theme: root.theme; commands: root.commands; barWindow: root } WorkspaceWidget { theme: root.theme } BindModeWidget { theme: root.theme } } RowLayout { Layout.alignment: Qt.AlignCenter spacing: 8 MediaWidget { theme: root.theme } ClockWidget { theme: root.theme; barWindow: root } } RowLayout { Layout.fillWidth: true Layout.alignment: Qt.AlignVCenter | Qt.AlignRight spacing: 8 TrayWidget { theme: root.theme; parentWindow: root } NotificationBridgeWidget { theme: root.theme; commands: root.commands } InhibitWidget { theme: root.theme onInhibitChanged: enabled => root.idleInhibited = enabled } WifiWidget { theme: root.theme; commands: root.commands } BluetoothWidget { theme: root.theme; commands: root.commands } CpuWidget { theme: root.theme; commands: root.commands } VolumeWidget { theme: root.theme; commands: root.commands } BrightnessWidget { theme: root.theme } BatteryWidget { theme: root.theme; commands: root.commands } PowerWidget { theme: root.theme; commands: root.commands; barWindow: root } } } }