Make Wallpaper Selector scrollable

This commit is contained in:
Ly-sec 2025-08-12 17:34:13 +02:00
parent a867ae4bca
commit 8585c5c729

View file

@ -13,9 +13,17 @@ Item {
Layout.fillWidth: true
Layout.fillHeight: true
ColumnLayout {
ScrollView {
anchors.fill: parent
clip: true
ScrollBar.vertical.policy: ScrollBar.AsNeeded
ScrollBar.horizontal.policy: ScrollBar.AsNeeded
contentWidth: parent.width
ColumnLayout {
width: parent.width
spacing: Style.marginMedium * scaling
Layout.fillWidth: true
NText {
text: "Wallpaper Selector"
@ -132,7 +140,7 @@ Item {
// Wallpaper grid container
Item {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredHeight: 400 * scaling
FolderListModel {
id: folderModel
@ -268,3 +276,4 @@ Item {
}
}
}
}