blob: 051732ec6b48d1c5a390554b60c654f010fb1286 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick.Window
Window {
// Different delegate positions and widths and window background colors
// can cause some unwanted "rogue pixels", so an easy way to get it perfect
// is to mess with the width.
width: 814
height: 512
visible: true
color: backgroundColor
flags: Qt.FramelessWindowHint
readonly property color backgroundColor: "#ffffff"
Shortcut {
sequence: "Ctrl+Q"
onActivated: Qt.quit()
}
PathView {
id: view
anchors.fill: parent
anchors.leftMargin: 130
anchors.rightMargin: 130
model: ListModel {
ListElement { source: "qtquickcontrols-basic.png"; dark: false }
ListElement { source: "qtquickcontrols-fusion.png"; dark: false }
ListElement { source: "qtquickcontrols-universal-light.png"; dark: false }
ListElement { source: "qtquickcontrols-universal-dark.png"; dark: true }
ListElement { source: "qtquickcontrols-material-dark.png"; dark: true }
ListElement { source: "qtquickcontrols-imagine.png"; dark: false }
ListElement { source: "qtquickcontrols-material-light.png"; dark: false }
}
highlightRangeMode: PathView.StrictlyEnforceRange
preferredHighlightBegin: 0.5
preferredHighlightEnd: 0.5
pathItemCount: 9
property real centerX: width / 2
property real centerY: height * 0.4
property real delegateSize: 393 / 2
path: CoverFlowPath {
pathView: view
}
delegate: CoverFlowDelegate {}
}
}
|