improve CustomButtonSettings layout

This commit is contained in:
notiant
2026-02-17 02:12:19 +01:00
committed by GitHub
parent 926dbd5265
commit fe37f56216
@@ -169,7 +169,7 @@ ColumnLayout {
ColumnLayout {
Layout.fillWidth: true
visible: _settings.enableOnStateLogic
spacing: (Style?.marginM ?? 8) * 2
spacing: Style?.marginM ?? 8
NLabel {
label: I18n.tr("panels.control-center.shortcuts-custom-button-state-checks-label")
@@ -180,7 +180,7 @@ ColumnLayout {
delegate: Item {
property int currentIndex: index
implicitHeight: contentRow.implicitHeight + ((divider.visible) ? divider.height : 0)
implicitHeight: contentRow.implicitHeight
Layout.fillWidth: true
RowLayout {
@@ -246,15 +246,13 @@ ColumnLayout {
saveSettings();
}
}
NDivider {
id: divider
anchors.bottom: parent.bottom
visible: index < _settings._stateChecksListModel.count - 1 // Only show divider if not the last item
}
}
}
Item {
Layout.fillWidth: true
}
RowLayout {
Layout.fillWidth: true
spacing: Style?.marginM ?? 8
@@ -269,12 +267,6 @@ ColumnLayout {
saveSettings();
}
}
Item {
Layout.fillWidth: true
}
}
}
NDivider {}
}