Replace NTextInput with NComboBox for font settings

FontService: use Qt.fontFamilies to grab available fonts and split Mono
fonts
NComboBox: allow height changes
GeneralTab: replace NTextInput with NComboBox
This commit is contained in:
Ly-sec 2025-09-02 20:07:10 +02:00
parent 8d05cb9f3b
commit 520da3e915
4 changed files with 191 additions and 19 deletions

View file

@ -10,6 +10,7 @@ RowLayout {
readonly property real preferredHeight: Style.baseWidgetSize * 1.1 * scaling
property real preferredWidth: 320 * scaling
property real popupHeight: 160 * scaling
property string label: ""
property string description: ""
@ -86,7 +87,7 @@ RowLayout {
popup: Popup {
y: combo.height
width: combo.width
implicitHeight: Math.min(160 * scaling, contentItem.implicitHeight + Style.marginM * scaling * 2)
implicitHeight: Math.min(root.popupHeight, contentItem.implicitHeight + Style.marginM * scaling * 2)
padding: Style.marginM * scaling
contentItem: ListView {