summaryrefslogtreecommitdiff
path: root/components/SimpleResource.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-15 18:14:54 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-15 18:14:54 +0800
commita92952081a331b7ecbb332d4b89f187ce74b9c02 (patch)
tree61327c0004f2a2617b6588a682875cd6236618b9 /components/SimpleResource.qml
parent376554accac978fc2254b2ce9aac5b3cbb0591e4 (diff)
modules-right: merged resources
Diffstat (limited to 'components/SimpleResource.qml')
-rw-r--r--components/SimpleResource.qml54
1 files changed, 22 insertions, 32 deletions
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
}
}
}