summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-13 22:28:51 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-13 22:28:51 +0800
commitf0b03a1611181b8ff20fc8698bcdb8fa267d23c9 (patch)
tree63afc08f6e3a4155e3e7d2f685d70750fa4b7263 /components
parentd32af184c62217c951b973f4f425932284fec5b9 (diff)
simpleresource: fix not centered
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
}
}
}