summaryrefslogtreecommitdiff
path: root/modules/controlcenter/appearance
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-17 14:16:05 -0500
committerATMDA <atdma2600@gmail.com>2025-11-17 14:16:05 -0500
commit678f7e33437a39b9499033be1cefe5cd62375291 (patch)
tree6fed9323c4eb399a755e0c6cba9b734b37b9ca65 /modules/controlcenter/appearance
parentcontrolcenter: added slight background to expanded collapsiblesections on app... (diff)
downloadcaelestia-shell-678f7e33437a39b9499033be1cefe5cd62375291.tar.gz
caelestia-shell-678f7e33437a39b9499033be1cefe5cd62375291.tar.bz2
caelestia-shell-678f7e33437a39b9499033be1cefe5cd62375291.zip
controlcenter: inner scrollbar for larger sections such as fonts
Diffstat (limited to 'modules/controlcenter/appearance')
-rw-r--r--modules/controlcenter/appearance/AppearancePane.qml14
1 files changed, 14 insertions, 0 deletions
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