summaryrefslogtreecommitdiff
path: root/modules/bar/components/Tray.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-27 10:42:08 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-27 10:42:08 +0800
commit63da636144635e5aa6b7ff1a2d2eec2a1e35aafa (patch)
treecd5461058c7afedb2d17f474f13ee218759519ba /modules/bar/components/Tray.qml
parentdrawers: dont use hyprland cursor pos (diff)
downloadcaelestia-shell-63da636144635e5aa6b7ff1a2d2eec2a1e35aafa.tar.gz
caelestia-shell-63da636144635e5aa6b7ff1a2d2eec2a1e35aafa.tar.bz2
caelestia-shell-63da636144635e5aa6b7ff1a2d2eec2a1e35aafa.zip
internal: bar only vertical
The bar can only be vertical Remove box, boxlayout and anchortext Add StyledClippingRect
Diffstat (limited to 'modules/bar/components/Tray.qml')
-rw-r--r--modules/bar/components/Tray.qml19
1 files changed, 14 insertions, 5 deletions
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