Browse Source
Oops
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3016/head
crueter
5 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with
39 additions and
0 deletions
-
src/eden/qml/main/GameCarouselCard.qml
|
|
|
@ -0,0 +1,39 @@ |
|
|
|
import QtQuick |
|
|
|
import QtQuick.Controls |
|
|
|
import Qt.labs.platform |
|
|
|
import QtCore |
|
|
|
|
|
|
|
import org.eden_emu.constants |
|
|
|
|
|
|
|
Item { |
|
|
|
property string title: model.name.replace(/-/g, " ") |
|
|
|
|
|
|
|
id: wrapper |
|
|
|
|
|
|
|
width: 300 |
|
|
|
height: 300 |
|
|
|
|
|
|
|
Rectangle { |
|
|
|
anchors.fill: parent |
|
|
|
color: "transparent" |
|
|
|
border { |
|
|
|
width: 4 * Constants.scalar |
|
|
|
color: PathView.isCurrentItem ? "deepskyblue" : "transparent" |
|
|
|
} |
|
|
|
|
|
|
|
Image { |
|
|
|
id: image |
|
|
|
|
|
|
|
fillMode: Image.PreserveAspectFit |
|
|
|
source: "file://" + model.path |
|
|
|
|
|
|
|
clip: true |
|
|
|
|
|
|
|
anchors { |
|
|
|
fill: parent |
|
|
|
|
|
|
|
margins: 10 * Constants.scalar |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |