wallpaperPicker image border

This commit is contained in:
Teo
2026-02-17 14:32:28 +01:00
parent d07fdd9535
commit db77867852
+23 -9
View File
@@ -115,25 +115,39 @@ PanelWindow {
// pictures + text
delegate: Item {
delegate: Rectangle {
width: grid.cellWidth
height: grid.cellHeight
color: "transparent"
Column {
spacing: 20
Image { // Image
source: filePath
fillMode: Image.PreserveAspectCrop
Rectangle {
width: grid.cellWidth -10
height: grid.cellHeight * 0.7
sourceSize.width: grid.cellWidth -10
sourceSize.height: grid.cellHeight * 0.7
border.width: 2
border.color: mouseArea.containsMouse ? Qt.alpha(Colors.surfaceContainerHover, 0.5) : "transparent"
Image { // Image
source: filePath
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
asynchronous: true
cache: true
sourceSize.width: grid.cellWidth -10
sourceSize.height: grid.cellHeight * 0.7
asynchronous: true
cache: true
}
Rectangle {
anchors.fill: parent
color: "transparent"
border.width: 2
border.color: mouseArea.containsMouse ? Qt.alpha(Colors.surfaceContainerHover, 0.5) : "transparent"
}
}
Rectangle { // highlight of text