1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-01 18:04:05 +02:00

more svg images

This commit is contained in:
Michael Zanetti
2012-12-13 22:01:07 +01:00
parent b6e573915c
commit b8c2d1b0af
2 changed files with 17 additions and 4 deletions

View File

@@ -26,12 +26,13 @@ Item {
height: cellHeight
cellWidth: (width - 1) / 3
cellHeight: cellWidth * 10 / 16
cellHeight: cellWidth //* 10 / 16
delegate: Image {
width: gridView.cellWidth - root.spacing
height: gridView.cellHeight - root.spacing
source: image
smooth: true
Rectangle {
id: textBackground
@@ -51,8 +52,20 @@ Item {
color: "white"
font.bold: true
}
MouseArea {
Rectangle {
id: hoverShade
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)
}
}

View File

@@ -10,8 +10,8 @@ Rectangle {
ListModel {
id: modeModel
ListElement { label: "By Artist"; image: "../images/artist-placeholder-grid.png"; creatorContent: "stations/CreateByArtist.qml" }
ListElement { label: "By Genre"; image: "../images/album-placeholder-grid.png"; creatorContent: "stations/CreateByGenre.qml" }
ListElement { label: "By Artist"; image: "../images/artist-placeholder-grid.svg"; creatorContent: "stations/CreateByArtist.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" }
}