From 2594c69f2d725ca43ef3b4fd5346607c9b3a4b0e Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Fri, 3 Sep 2021 09:13:47 -0600 Subject: [PATCH] Improve look of FormLayout section headers The current styling looks a bit unpolished with its small left-aligned label. Its small size and alignment does not feel like a section header. This commit improves that. --- src/controls/FormLayout.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controls/FormLayout.qml b/src/controls/FormLayout.qml index 5d2cbccba..121141afd 100644 --- a/src/controls/FormLayout.qml +++ b/src/controls/FormLayout.qml @@ -240,7 +240,7 @@ Item { : (item.Kirigami.FormData.buddyFor.height > height * 2 ? Qt.AlignTop : Qt.AlignVCenter) if (item.Kirigami.FormData.isSection) { - return Qt.AlignLeft + return Qt.AlignHCenter } else { if (root.wideMode) { return Qt.AlignRight | verticalAlignment @@ -377,7 +377,7 @@ Item { Kirigami.MnemonicData.label: item.Kirigami.FormData.label text: Kirigami.MnemonicData.richTextLabel - level: item.Kirigami.FormData.isSection ? 3 : 5 + level: item.Kirigami.FormData.isSection ? 2 : 5 Layout.columnSpan: item.Kirigami.FormData.isSection ? lay.columns : 1 Layout.preferredHeight: { @@ -449,7 +449,7 @@ Item { } contentItem: Kirigami.Heading { id: labelItemHeading - level: labelItem.item.Kirigami.FormData.isSection ? 3 : 5 + level: labelItem.item.Kirigami.FormData.isSection ? 2 : 5 text: labelItem.text verticalAlignment: temp.effectiveTextLayout(labelItem.item) enabled: labelItem.item.Kirigami.FormData.enabled -- GitLab