wallpaperPicker image border
This commit is contained in:
@@ -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"
|
||||
|
||||
asynchronous: true
|
||||
cache: true
|
||||
Image { // Image
|
||||
source: filePath
|
||||
anchors.fill: parent
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user