diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-27 10:42:08 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-27 10:42:08 +0800 |
| commit | 63da636144635e5aa6b7ff1a2d2eec2a1e35aafa (patch) | |
| tree | cd5461058c7afedb2d17f474f13ee218759519ba /modules/dashboard | |
| parent | drawers: dont use hyprland cursor pos (diff) | |
| download | caelestia-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/dashboard')
| -rw-r--r-- | modules/dashboard/Media.qml | 10 | ||||
| -rw-r--r-- | modules/dashboard/dash/Media.qml | 10 | ||||
| -rw-r--r-- | modules/dashboard/dash/User.qml | 15 |
3 files changed, 6 insertions, 29 deletions
diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml index 745bf7a..40f32f1 100644 --- a/modules/dashboard/Media.qml +++ b/modules/dashboard/Media.qml @@ -98,7 +98,7 @@ Item { } } - ClippingRectangle { + StyledClippingRect { id: cover anchors.verticalCenter: parent.verticalCenter @@ -130,14 +130,6 @@ Item { sourceSize.width: width sourceSize.height: height } - - Behavior on color { - ColorAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } - } } Column { diff --git a/modules/dashboard/dash/Media.qml b/modules/dashboard/dash/Media.qml index 075844c..777c5e8 100644 --- a/modules/dashboard/dash/Media.qml +++ b/modules/dashboard/dash/Media.qml @@ -87,7 +87,7 @@ Item { } } - ClippingRectangle { + StyledClippingRect { id: cover anchors.top: parent.top @@ -118,14 +118,6 @@ Item { sourceSize.width: width sourceSize.height: height } - - Behavior on color { - ColorAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } - } } StyledText { diff --git a/modules/dashboard/dash/User.qml b/modules/dashboard/dash/User.qml index a36536f..46055e9 100644 --- a/modules/dashboard/dash/User.qml +++ b/modules/dashboard/dash/User.qml @@ -13,7 +13,7 @@ Row { padding: Appearance.padding.large spacing: Appearance.spacing.large - ClippingRectangle { + StyledClippingRect { implicitWidth: info.implicitHeight implicitHeight: info.implicitHeight @@ -32,14 +32,6 @@ Row { anchors.fill: parent path: `${Paths.home}/.face` } - - Behavior on color { - ColorAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } - } } Column { @@ -109,10 +101,11 @@ Row { }) } - AnchorText { + StyledText { id: text - prevAnchor: icon + anchors.verticalCenter: icon.verticalCenter + anchors.left: icon.right anchors.leftMargin: icon.anchors.leftMargin text: `: ${line.text}` font.pointSize: Appearance.font.size.normal |