After the new heading style was introduced the member heading needs updating as it used to have a background.

Remove the background and adjust the margins and spacing.
This commit is contained in:
James Graham
2022-10-29 15:51:53 +01:00
parent 2fbc38fa9a
commit 7f11bfea63

View File

@@ -218,27 +218,16 @@ Kirigami.OverlayDrawer {
} }
} }
Control { Kirigami.SearchField {
Layout.fillWidth: true
// Note need to set padding individually to guarantee it will always work
// see note - https://doc.qt.io/qt-6/qml-qtquick-controls2-control.html#padding-prop
topPadding: Kirigami.Units.smallSpacing
bottomPadding: Kirigami.Units.smallSpacing
rightPadding: Kirigami.Units.largeSpacing
leftPadding: Kirigami.Units.largeSpacing
background: Rectangle {
color: Kirigami.Theme.backgroundColor
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.Window
}
contentItem: Kirigami.SearchField {
id: userListSearchField id: userListSearchField
Layout.fillWidth: true
Layout.leftMargin: Kirigami.Units.largeSpacing - 1
Layout.rightMargin: Kirigami.Units.largeSpacing - 1
Layout.bottomMargin: Kirigami.Units.smallSpacing
onAccepted: sortedMessageEventModel.filterString = text; onAccepted: sortedMessageEventModel.filterString = text;
} }
}
ScrollView { ScrollView {
Layout.fillWidth: true Layout.fillWidth: true