Commit 0417f736 authored by Nate Graham's avatar Nate Graham 🔩

[wallpapers/image] Tweak slideshow folders list appearance

This makes it look better with the change to Kirigami.SwipeListItem to
make the actions always visible on the desktop, and in the process fixes
a binding loop and some minor visual glitches.
parent fa2bafea
......@@ -306,22 +306,21 @@ ColumnLayout {
QtControls2.ScrollView {
id: foldersScroll
Layout.fillHeight: true
Layout.preferredWidth: 0.25 * parent.width
Layout.preferredWidth: 0.35 * parent.width
Layout.maximumWidth: Kirigami.Units.gridUnit * 16
Component.onCompleted: foldersScroll.background.visible = true;
ListView {
id: slidePathsView
model: imageWallpaper.slidePaths
delegate: Kirigami.SwipeListItem {
id: folderDelegate
width: slidePathsView.width
// Don't need a highlight
activeBackgroundColor: "transparent"
contentItem: Kirigami.BasicListItem {
// The parent item already has a highlight
// Don't need a highlight
activeBackgroundColor: "transparent"
// Otherwise there are unnecessary margins
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
// No right anchor so text can be elided by actions
activeTextColor: "black"
separatorVisible: false
// Header: the folder
label: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment