From c26784e2156398d665fa5704d64c053a8d5252d5 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Wed, 5 Nov 2025 12:20:36 -0500 Subject: [PATCH] Tray: disable drawer until we get a proper fix --- Modules/Bar/Widgets/Tray.qml | 108 +++++++++++++++++------------------ 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/Modules/Bar/Widgets/Tray.qml b/Modules/Bar/Widgets/Tray.qml index f58fac23..a5d0f3bd 100644 --- a/Modules/Bar/Widgets/Tray.qml +++ b/Modules/Bar/Widgets/Tray.qml @@ -192,7 +192,7 @@ Rectangle { Repeater { id: repeater - model: filteredItems + model: SystemTray.items delegate: Item { width: itemSize @@ -303,63 +303,63 @@ Rectangle { } // Dropdown opener - simple icon with hover effect - Item { - id: dropdownButton - visible: dropdownItems.length > 0 - width: itemSize - height: itemSize + // Item { + // id: dropdownButton + // visible: dropdownItems.length > 0 + // width: itemSize + // height: itemSize - property bool hovered: false + // property bool hovered: false - NIcon { - id: chevronIcon - anchors.centerIn: parent - icon: { - if (barPosition === "top") - return "caret-down" - else if (barPosition === "bottom") - return "caret-up" - else if (barPosition === "left") - return "caret-right" - else if (barPosition === "right") - return "caret-left" - else - return "caret-down" // default fallback - } - pointSize: Math.round(itemSize * 0.65) - color: dropdownButton.hovered ? Color.mPrimary : Color.mOnSurface + // NIcon { + // id: chevronIcon + // anchors.centerIn: parent + // icon: { + // if (barPosition === "top") + // return "caret-down" + // else if (barPosition === "bottom") + // return "caret-up" + // else if (barPosition === "left") + // return "caret-right" + // else if (barPosition === "right") + // return "caret-left" + // else + // return "caret-down" // default fallback + // } + // pointSize: Math.round(itemSize * 0.65) + // color: dropdownButton.hovered ? Color.mPrimary : Color.mOnSurface - Behavior on color { - ColorAnimation { - duration: Style.animationFast - easing.type: Easing.InOutQuad - } - } - } + // Behavior on color { + // ColorAnimation { + // duration: Style.animationFast + // easing.type: Easing.InOutQuad + // } + // } + // } - MouseArea { - anchors.fill: parent - hoverEnabled: true - cursorShape: Qt.PointingHandCursor - onEntered: { - dropdownButton.hovered = true - TooltipService.show(Screen, dropdownButton, I18n.tr("tooltips.open-tray-dropdown"), BarService.getTooltipDirection()) - } - onExited: { - dropdownButton.hovered = false - TooltipService.hide() - } - onClicked: { - TooltipService.hideImmediately() - const panel = PanelService.getPanel("trayDropdownPanel", root.screen) - if (panel) { - panel.widgetSection = root.section - panel.widgetIndex = root.sectionWidgetIndex - panel.toggle(dropdownButton) - } - } - } - } + // MouseArea { + // anchors.fill: parent + // hoverEnabled: true + // cursorShape: Qt.PointingHandCursor + // onEntered: { + // dropdownButton.hovered = true + // TooltipService.show(Screen, dropdownButton, I18n.tr("tooltips.open-tray-dropdown"), BarService.getTooltipDirection()) + // } + // onExited: { + // dropdownButton.hovered = false + // TooltipService.hide() + // } + // onClicked: { + // TooltipService.hideImmediately() + // const panel = PanelService.getPanel("trayDropdownPanel", root.screen) + // if (panel) { + // panel.widgetSection = root.section + // panel.widgetIndex = root.sectionWidgetIndex + // panel.toggle(dropdownButton) + // } + // } + // } + // } } PanelWindow {