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
54
55
56
57
58
59
60
61
62
63
64
65
66
|
import QtQuick 2.2
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1
import "../../components"
import Machines 1.0
import QtQuick.Layouts 1.1
ModalOverlay {
id: root
title: "Let us know what you think!"
showCloseButton: true
Column {
anchors.fill: parent
anchors.margins: app.buttonSize
spacing: app.margins
Row {
anchors { left: parent.left; right: parent.right; margins: app.margins }
height: parent.height - y
spacing: app.buttonSize / 2
Button {
height: parent.height
width: (parent.width - parent.spacing*2 - orLabel.width) / 2
color: app.confirmationButtonColor
onClicked: Qt.openUrlExternally("scope://com.canonical.scopes.clickstore?q=Machines%20vs%20Machines")
Label {
anchors.fill: parent
anchors.margins: app.margins
wrapMode: Text.WordWrap
text: "Leave us a review in the Ubuntu App Store"
color: app.buttonTextColor
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
}
GameLabel {
id: orLabel
anchors.verticalCenter: parent.verticalCenter
text: "or"
}
Button {
height: parent.height
width: (parent.width - parent.spacing*2 - orLabel.width) / 2
color: app.confirmationButtonColor
onClicked: {
Qt.openUrlExternally("https://launchpad.net/machines-vs-machines")
}
Label {
anchors.fill: parent
anchors.margins: app.margins
wrapMode: Text.WordWrap
text: "Visit our Launchpad page to report a bug or contact us."
color: app.buttonTextColor
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
}
}
}
}
|