Edit NButton alignment

This commit is contained in:
Ly-sec 2025-09-07 15:33:47 +02:00
parent c14eb95dba
commit 888ba108e0
4 changed files with 10 additions and 1 deletions

View file

@ -77,10 +77,12 @@ Rectangle {
RowLayout {
id: contentRow
anchors.centerIn: parent
spacing: Style.marginS * scaling
spacing: Style.marginXS * scaling
// Icon (optional)
NIcon {
Layout.alignment: Qt.AlignVCenter
layoutTopMargin: 1 * scaling
visible: root.icon !== ""
text: root.icon
font.pointSize: root.iconSize
@ -105,6 +107,7 @@ Rectangle {
// Text
NText {
Layout.alignment: Qt.AlignVCenter
visible: root.text !== ""
text: root.text
font.pointSize: root.fontSize