From 35994f730803a34b67c741c3f21976c31da0e5cd Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 19 May 2025 21:03:34 +0800 Subject: dashboard: resources --- modules/dashboard/Dash.qml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'modules/dashboard/Dash.qml') diff --git a/modules/dashboard/Dash.qml b/modules/dashboard/Dash.qml index 1af0d70..31ece71 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 { @@ -17,7 +17,7 @@ GridLayout { } Rect { - text: "toggles" + // text: "toggles" Layout.column: 3 Layout.columnSpan: 2 @@ -32,7 +32,7 @@ GridLayout { } Rect { - text: "calendar" + // text: "calendar" Layout.row: 1 Layout.column: 1 @@ -42,12 +42,11 @@ GridLayout { } Rect { - text: "perf" - Layout.row: 1 Layout.column: 4 - Layout.preferredWidth: 120 Layout.fillHeight: true + + Resources {} } Rect { @@ -59,15 +58,22 @@ GridLayout { Media {} } - component Rect: StyledRect { - property string text + component Rect: Rectangle { + default property Item child + + children: [child] + implicitWidth: child.implicitWidth + implicitHeight: child.implicitHeight radius: Appearance.rounding.small color: Colours.palette.m3surfaceContainer - StyledText { - anchors.centerIn: parent - text: parent.text + Behavior on color { + ColorAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } } } } -- cgit v1.2.3-freya