SettingsTabs: use NHeader, move display settings around

This commit is contained in:
Ly-sec 2025-09-14 15:50:23 +02:00
parent 0d611fc891
commit 7594651e05
19 changed files with 483 additions and 480 deletions

33
Widgets/NHeader.qml Normal file
View file

@ -0,0 +1,33 @@
import QtQuick
import QtQuick.Layouts
import qs.Commons
ColumnLayout {
id: root
property string title: ""
property string description: ""
property real bottomMargin: Style.marginL * scaling
spacing: Style.marginXXS * scaling
Layout.fillWidth: true
NText {
text: root.title
font.pointSize: Style.fontSizeXXL * scaling
font.weight: Style.fontWeightBold
color: Color.mSecondary
Layout.bottomMargin: Style.marginS * scaling
visible: root.title !== ""
}
NText {
text: root.description
font.pointSize: Style.fontSizeM * scaling
color: Color.mOnSurfaceVariant
wrapMode: Text.WordWrap
Layout.fillWidth: true
Layout.bottomMargin: root.bottomMargin
visible: root.description !== ""
}
}