summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/SimpleResource.qml16
1 files changed, 5 insertions, 11 deletions
diff --git a/components/SimpleResource.qml b/components/SimpleResource.qml
index 6dc2bba..bd88085 100644
--- a/components/SimpleResource.qml
+++ b/components/SimpleResource.qml
@@ -15,11 +15,6 @@ Item {
Rectangle {
id: container
- anchors {
- fill: parent
- verticalCenter: parent.verticalCenter
- horizontalCenter: parent.horizontalCenter
- }
implicitWidth: layout.implicitWidth + Config.General.rectMargin * 2
implicitHeight: Config.Bar.height - Config.General.rectMargin
@@ -28,14 +23,14 @@ Item {
RowLayout {
id: layout
-
- anchors {
- verticalCenter: parent.verticalCenter
- horizontalCenter: parent.horizontalCenter
- }
+ anchors.centerIn: parent
spacing: Config.Bar.resourceIconTextSpacing
+ Item {
+ Layout.fillWidth: true
+ }
+
Icons {
text: root.icon
}
@@ -45,7 +40,6 @@ Item {
Item {
Layout.fillWidth: true
- Layout.fillHeight: true
}
}
}