summaryrefslogtreecommitdiff
path: root/modules/dashboard
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 20:57:51 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 20:57:51 +0800
commit80f2fdf04421676108e698d8f5f3ea03b4b2a2f4 (patch)
treeaa66b93ce09093ec6befd92e247fcf1c64e4273b /modules/dashboard
parentdashboard: make weather icon less thick (diff)
downloadcaelestia-shell-80f2fdf04421676108e698d8f5f3ea03b4b2a2f4.tar.gz
caelestia-shell-80f2fdf04421676108e698d8f5f3ea03b4b2a2f4.tar.bz2
caelestia-shell-80f2fdf04421676108e698d8f5f3ea03b4b2a2f4.zip
dashboard: fix sizing issues
Diffstat (limited to 'modules/dashboard')
-rw-r--r--modules/dashboard/Dash.qml44
-rw-r--r--modules/dashboard/dash/Calendar.qml1
2 files changed, 23 insertions, 22 deletions
diff --git a/modules/dashboard/Dash.qml b/modules/dashboard/Dash.qml
index 4f96258..d5f3e34 100644
--- a/modules/dashboard/Dash.qml
+++ b/modules/dashboard/Dash.qml
@@ -1,7 +1,7 @@
+import "root:/widgets"
import "root:/services"
import "root:/config"
import "dash"
-import QtQuick
import QtQuick.Layouts
GridLayout {
@@ -13,8 +13,12 @@ GridLayout {
Rect {
Layout.column: 2
Layout.columnSpan: 3
+ Layout.preferredWidth: user.implicitWidth
+ Layout.preferredHeight: user.implicitHeight
- User {}
+ User {
+ id: user
+ }
}
Rect {
@@ -28,9 +32,12 @@ GridLayout {
Rect {
Layout.row: 1
+ Layout.preferredWidth: dateTime.implicitWidth
Layout.fillHeight: true
- DateTime {}
+ DateTime {
+ id: dateTime
+ }
}
Rect {
@@ -38,43 +45,38 @@ GridLayout {
Layout.column: 1
Layout.columnSpan: 3
Layout.fillWidth: true
+ Layout.preferredHeight: calendar.implicitHeight
- Calendar {}
+ Calendar {
+ id: calendar
+ }
}
Rect {
Layout.row: 1
Layout.column: 4
+ Layout.preferredWidth: resources.implicitWidth
Layout.fillHeight: true
- Resources {}
+ Resources {
+ id: resources
+ }
}
Rect {
Layout.row: 0
Layout.column: 5
Layout.rowSpan: 2
+ Layout.preferredWidth: media.implicitWidth
Layout.fillHeight: true
- Media {}
+ Media {
+ id: media
+ }
}
- component Rect: Rectangle {
- default property Item child
-
- children: [child]
- implicitWidth: child.implicitWidth
- implicitHeight: child.implicitHeight
-
+ component Rect: StyledRect {
radius: Appearance.rounding.small
color: Colours.palette.m3surfaceContainer
-
- Behavior on color {
- ColorAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
- }
}
}
diff --git a/modules/dashboard/dash/Calendar.qml b/modules/dashboard/dash/Calendar.qml
index 16ee446..7b69f98 100644
--- a/modules/dashboard/dash/Calendar.qml
+++ b/modules/dashboard/dash/Calendar.qml
@@ -3,7 +3,6 @@ import "root:/services"
import "root:/config"
import QtQuick
import QtQuick.Controls
-import QtQuick.Layouts
Column {
id: root