wallpaperPicker image border

This commit is contained in:
Teo
2026-02-17 14:32:28 +01:00
parent d07fdd9535
commit db77867852
+19 -5
View File
@@ -115,20 +115,26 @@ PanelWindow {
// pictures + text // pictures + text
delegate: Item { delegate: Rectangle {
width: grid.cellWidth width: grid.cellWidth
height: grid.cellHeight height: grid.cellHeight
color: "transparent"
Column { Column {
spacing: 20 spacing: 20
Image { // Image Rectangle {
source: filePath
fillMode: Image.PreserveAspectCrop
width: grid.cellWidth -10 width: grid.cellWidth -10
height: grid.cellHeight * 0.7 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
sourceSize.width: grid.cellWidth -10 sourceSize.width: grid.cellWidth -10
sourceSize.height: grid.cellHeight * 0.7 sourceSize.height: grid.cellHeight * 0.7
@@ -136,6 +142,14 @@ PanelWindow {
cache: 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 Rectangle { // highlight of text
id: textHighlight id: textHighlight
width: parent.width - 10 width: parent.width - 10