-
Notifications
You must be signed in to change notification settings - Fork 0
/
NavigationButton.ui.qml
46 lines (37 loc) · 1.13 KB
/
NavigationButton.ui.qml
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
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import Coffee
Row {
id: row
signal clicked
property alias text: brewLabel.text
property bool forward: true
layoutDirection: row.forward ? Qt.LeftToRight : Qt.RightToLeft
spacing: 17
Text {
id: brewLabel
color: "#ffffff"
text: qsTr("Brew Me a CUP")
font.family: Constants.fontFamily
wrapMode: Text.WrapAnywhere
font.pixelSize: 64
font.capitalization: Font.AllUppercase
}
Image {
id: image
anchors.verticalCenter: parent.verticalCenter
source: row.forward ? "images/ui controls/buttons/go/white.png" : "images/ui controls/buttons/back/white.png"
scale: mouseArea.containsMouse ? 1.1 : 1
MouseArea {
id: mouseArea
hoverEnabled: true
anchors.fill: parent
Connections {
function onClicked(mouse) {
row.clicked()
}
}
}
}
}