pragma ComponentBehavior: Bound import QtQuick import "../../components" import "../../services" import "../../menus" import "../../core" Item { id: root property var barScreen property var entry: ({}) 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" && root.entry.bare !== true } 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 } } } }