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

[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 { ...@@ -306,22 +306,21 @@ ColumnLayout {
QtControls2.ScrollView { QtControls2.ScrollView {
id: foldersScroll id: foldersScroll
Layout.fillHeight: true 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; Component.onCompleted: foldersScroll.background.visible = true;
ListView { ListView {
id: slidePathsView id: slidePathsView
model: imageWallpaper.slidePaths model: imageWallpaper.slidePaths
delegate: Kirigami.SwipeListItem { delegate: Kirigami.SwipeListItem {
id: folderDelegate
width: slidePathsView.width width: slidePathsView.width
// Don't need a highlight
activeBackgroundColor: "transparent"
contentItem: Kirigami.BasicListItem { contentItem: Kirigami.BasicListItem {
// The parent item already has a highlight // Don't need a highlight
activeBackgroundColor: "transparent" activeBackgroundColor: "transparent"
// Otherwise there are unnecessary margins activeTextColor: "black" separatorVisible: false
anchors.bottom: parent.bottom
anchors.left: parent.left
// No right anchor so text can be elided by actions
// Header: the folder // Header: the folder
label: { 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