From 63da636144635e5aa6b7ff1a2d2eec2a1e35aafa Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 27 May 2025 10:42:08 +0800 Subject: internal: bar only vertical The bar can only be vertical Remove box, boxlayout and anchortext Add StyledClippingRect --- modules/bar/components/Tray.qml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'modules/bar/components/Tray.qml') diff --git a/modules/bar/components/Tray.qml b/modules/bar/components/Tray.qml index 78efad7..fc65492 100644 --- a/modules/bar/components/Tray.qml +++ b/modules/bar/components/Tray.qml @@ -1,5 +1,3 @@ -import "root:/widgets" -import "root:/services" import "root:/config" import Quickshell.Services.SystemTray import QtQuick @@ -7,17 +5,28 @@ import QtQuick Item { id: root - readonly property bool vertical: parent?.vertical ?? false - clip: true visible: width > 0 && height > 0 // To avoid warnings about being visible with no size implicitWidth: layout.implicitWidth implicitHeight: layout.implicitHeight - BoxLayout { + Column { id: layout + spacing: Appearance.spacing.small + + add: Transition { + NumberAnimation { + properties: "scale" + from: 0 + to: 1 + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standardDecel + } + } + Repeater { model: SystemTray.items -- cgit v1.2.3-freya