Files
glassMxrph/quickshell/bar/modules/TrayModule.qml
T
mxandClaude Opus 5.5 99e64a7713 Add glassMxrph shell sources
Initial commit of the Quickshell desktop suite: bar, dock, launcher,
settings, Control Center, dashboard, OSD, lock screen, desktop widgets,
plugin host with the vendored Noctalia/Omarchy compatibility layer,
helpers, packaging, tests and phase documentation.

Includes the optimization work so far: usage widgets and dashboard
gauges no longer animate continuously, desktop widgets pause while
covered, system controls stop flickering on background polls, dock app
matching uses an indexed catalog, and workspace ghosts are created only
for occupied slots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:36:17 +02:00

26 lines
963 B
QML

pragma ComponentBehavior: Bound
import QtQuick
import "../../components"
import "../../services"
import "../../menus"
import "../../core"
Item {
id: root
property var barScreen
readonly property bool shown: TrayService.options.enabled && TrayService.items.length > 0
implicitWidth: shown ? row.implicitWidth + 12 : 0
implicitHeight: shown ? ModuleRegistry.pillHeight : 0
visible: shown
// The whole pill is hover space: gaps between icons keep a hover menu open.
readonly property bool hovered: hover.hovered
HoverHandler { id: hover }
GlassPill { anchors.fill: parent; visible: TrayService.options.background === "pill" }
Row {
id: row; anchors.centerIn: parent; spacing: TrayService.options.spacing
Repeater {
model: root.shown ? TrayService.items : []
TrayIcon { required property var modelData; trayItem: modelData; barScreen: root.barScreen; group: root }
}
}
}