summaryrefslogtreecommitdiff
path: root/components/SimpleResource.qml
diff options
context:
space:
mode:
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
}
}
}