mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-02 02:12:47 +02:00
more svg images
This commit is contained in:
@@ -26,12 +26,13 @@ Item {
|
|||||||
height: cellHeight
|
height: cellHeight
|
||||||
|
|
||||||
cellWidth: (width - 1) / 3
|
cellWidth: (width - 1) / 3
|
||||||
cellHeight: cellWidth * 10 / 16
|
cellHeight: cellWidth //* 10 / 16
|
||||||
|
|
||||||
delegate: Image {
|
delegate: Image {
|
||||||
width: gridView.cellWidth - root.spacing
|
width: gridView.cellWidth - root.spacing
|
||||||
height: gridView.cellHeight - root.spacing
|
height: gridView.cellHeight - root.spacing
|
||||||
source: image
|
source: image
|
||||||
|
smooth: true
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: textBackground
|
id: textBackground
|
||||||
@@ -51,8 +52,20 @@ Item {
|
|||||||
color: "white"
|
color: "white"
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
MouseArea {
|
Rectangle {
|
||||||
|
id: hoverShade
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
color: "white"
|
||||||
|
opacity: mouseArea.containsMouse ? .2 : 0
|
||||||
|
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation { easing.type: Easing.Linear; duration: 300 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
MouseArea {
|
||||||
|
id: mouseArea
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
onClicked: root.itemClicked(index)
|
onClicked: root.itemClicked(index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -10,8 +10,8 @@ Rectangle {
|
|||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
id: modeModel
|
id: modeModel
|
||||||
ListElement { label: "By Artist"; image: "../images/artist-placeholder-grid.png"; creatorContent: "stations/CreateByArtist.qml" }
|
ListElement { label: "By Artist"; image: "../images/artist-placeholder-grid.svg"; creatorContent: "stations/CreateByArtist.qml" }
|
||||||
ListElement { label: "By Genre"; image: "../images/album-placeholder-grid.png"; creatorContent: "stations/CreateByGenre.qml" }
|
ListElement { label: "By Genre"; image: "../images/album-placeholder-grid.svg"; creatorContent: "stations/CreateByGenre.qml" }
|
||||||
ListElement { label: "By Year"; image: "image://albumart/foobar"; creatorContent: "year" }
|
ListElement { label: "By Year"; image: "image://albumart/foobar"; creatorContent: "year" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user