From a92952081a331b7ecbb332d4b89f187ce74b9c02 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 15 Jul 2025 18:14:54 +0800 Subject: modules-right: merged resources --- components/SimpleResource.qml | 54 ++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 32 deletions(-) (limited to 'components') diff --git a/components/SimpleResource.qml b/components/SimpleResource.qml index dba6a2d..c1c5bd1 100644 --- a/components/SimpleResource.qml +++ b/components/SimpleResource.qml @@ -10,38 +10,28 @@ Item { required property string text required property string icon - implicitWidth: container.implicitWidth - implicitHeight: container.implicitHeight - - Rectangle { - id: container - implicitWidth: layout.implicitWidth + General.rectMargin * 2 - implicitHeight: Bar.height - General.rectMargin - - color: Colors.alt - radius: Style.rounding.large - - RowLayout { - id: layout - anchors.centerIn: parent - - spacing: Bar.resourceIconTextSpacing - - Item { - Layout.fillWidth: true - } - - Icon { - text: root.icon - } - IText { - animate: true - text: root.text - } - - Item { - Layout.fillWidth: true - } + implicitWidth: layout.implicitWidth + implicitHeight: layout.implicitHeight + + RowLayout { + id: layout + + spacing: Bar.resourceIconTextSpacing + + Item { + Layout.fillWidth: true + } + + Icon { + text: root.icon + } + IText { + animate: true + text: root.text + } + + Item { + Layout.fillWidth: true } } } -- cgit v1.2.3