wallpaperPicker image border
This commit is contained in:
@@ -115,25 +115,39 @@ 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
|
||||||
|
|
||||||
sourceSize.width: grid.cellWidth -10
|
border.width: 2
|
||||||
sourceSize.height: grid.cellHeight * 0.7
|
border.color: mouseArea.containsMouse ? Qt.alpha(Colors.surfaceContainerHover, 0.5) : "transparent"
|
||||||
|
|
||||||
|
Image { // Image
|
||||||
|
source: filePath
|
||||||
|
anchors.fill: parent
|
||||||
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
|
||||||
asynchronous: true
|
sourceSize.width: grid.cellWidth -10
|
||||||
cache: true
|
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
|
Rectangle { // highlight of text
|
||||||
|
|||||||
Reference in New Issue
Block a user