Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- FocusScope {
- Rectangle {
- id: xboxgrid
- color: "#272727"
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- clip: true
- Component {
- id: xboxDelegate
- Item {
- //width: grid.cellWidth; height: grid.cellHeight
- width: vpx(145); height: vpx(216)
- Column {
- anchors.fill: parent
- Image {
- id: cover
- anchors.top: parent.top
- anchors.right: parent.right
- anchors.left: parent.left
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 0
- fillMode: Image.PreserveAspectCrop
- source: assets.banner || assets.steam || assets.boxFront
- sourceSize { width: 300; height: 300 }
- asynchronous: true
- }
- Text { text: modelData.title; font.family: "Segoe UI"; font.bold: true; font.pointSize: 14; color:"white" }
- }
- }
- }
- GridView {
- id: grid
- anchors.fill: parent
- //anchors.margins: vpx(70)
- anchors.topMargin: vpx(15)
- anchors.leftMargin: vpx(70)
- cellWidth: vpx(150); cellHeight: vpx(300)
- model: api.currentCollection.gameList.model
- delegate: xboxDelegate
- currentIndex: api.collectionList.index
- highlight:
- Rectangle {
- width: cellWidth; height: cellHeight
- color: "transparent"
- border.color: "white"
- border.width: vpx(3)
- scale: 1.01
- z: 2
- }
- highlightMoveDuration: 0
- focus: true
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement