From f0b03a1611181b8ff20fc8698bcdb8fa267d23c9 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Jul 2025 22:28:51 +0800 Subject: simpleresource: fix not centered --- components/SimpleResource.qml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'components') 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 } } } -- cgit v1.2.3