diff --git a/src/eden/qml/main/GameCarouselCard.qml b/src/eden/qml/main/GameCarouselCard.qml new file mode 100644 index 0000000000..7e7514f7ec --- /dev/null +++ b/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 + } + } + } +}