Compare commits

...

2 commits

Author SHA1 Message Date
Benjamin Palko
823dd66719 much better 2025-09-24 22:57:33 -04:00
Benjamin Palko
617931a115 initial load 2025-09-24 09:43:28 -04:00
2 changed files with 15 additions and 9 deletions

View file

@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
import qs.config
import QtQuick
import QtQuick.Controls
import Quickshell.Widgets
ComboBox {
id: control
@ -41,7 +42,6 @@ ComboBox {
duration: Styling.animations.speed.fast
}
}
radius: Styling.theme.radiusSelector
}
highlighted: control.highlightedIndex === index
}
@ -81,13 +81,17 @@ ComboBox {
height: Math.min(contentItem.implicitHeight, control.Window.height - topMargin - bottomMargin)
padding: 1
contentItem: ListView {
clip: true
implicitHeight: contentHeight + 2
model: control.popup.visible ? control.delegateModel : null
currentIndex: control.highlightedIndex
contentItem: ClippingWrapperRectangle {
radius: Styling.theme.radiusField
ScrollIndicator.vertical: ScrollIndicator {}
ListView {
clip: true
implicitHeight: contentHeight + 2
model: control.popup.visible ? control.delegateModel : null
currentIndex: control.highlightedIndex
ScrollIndicator.vertical: ScrollIndicator {}
}
}
background: Rectangle {
@ -97,8 +101,7 @@ ComboBox {
duration: Styling.animations.speed.fast
}
}
bottomLeftRadius: Styling.theme.radiusField
bottomRightRadius: Styling.theme.radiusField
radius: Styling.theme.radiusField
}
}
}

View file

@ -26,6 +26,9 @@ StackView {
Image {}
}
Component.onCompleted: stack.replace(img, {
"source": stack.wallpaper
})
onWallpaperChanged: stack.replace(img, {
"source": stack.wallpaper
})