From 678f7e33437a39b9499033be1cefe5cd62375291 Mon Sep 17 00:00:00 2001 From: ATMDA Date: Mon, 17 Nov 2025 14:16:05 -0500 Subject: controlcenter: inner scrollbar for larger sections such as fonts --- modules/controlcenter/appearance/AppearancePane.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/controlcenter/appearance/AppearancePane.qml') diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml index 56332f1..177e7b9 100644 --- a/modules/controlcenter/appearance/AppearancePane.qml +++ b/modules/controlcenter/appearance/AppearancePane.qml @@ -526,6 +526,7 @@ RowLayout { showBackground: true Loader { + id: materialFontLoader Layout.fillWidth: true Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0 asynchronous: true @@ -539,6 +540,10 @@ RowLayout { spacing: Appearance.spacing.small / 2 model: Qt.fontFamilies() + StyledScrollBar.vertical: StyledScrollBar { + flickable: materialFontList + } + delegate: StyledRect { required property string modelData required property int index @@ -592,6 +597,7 @@ RowLayout { implicitHeight: fontFamilyMaterialRow.implicitHeight + Appearance.padding.normal * 2 } } + } } @@ -615,6 +621,10 @@ RowLayout { spacing: Appearance.spacing.small / 2 model: Qt.fontFamilies() + StyledScrollBar.vertical: StyledScrollBar { + flickable: monoFontList + } + delegate: StyledRect { required property string modelData required property int index @@ -691,6 +701,10 @@ RowLayout { spacing: Appearance.spacing.small / 2 model: Qt.fontFamilies() + StyledScrollBar.vertical: StyledScrollBar { + flickable: sansFontList + } + delegate: StyledRect { required property string modelData required property int index -- cgit v1.2.3-freya