summaryrefslogtreecommitdiff
path: root/app/qml/pages/Disclaimer.qml
blob: baf5cd01b035717d16af6ec7ed40e8f17733a047 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import QtQuick 2.0
import QtQml 2.1
import Sailfish.Silica 1.0

Page {
    id: page

    SilicaFlickable {
        id: flickable
        anchors.fill: parent
        contentHeight: column.height

        VerticalScrollDecorator { flickable: flickable }

        Column {
            id: column
            width: page.width
            spacing: Theme.paddingMedium

            PageHeader {
                title: qsTr("Feature unavailable")
            }
            Label {
                anchors {
                    left: parent.left
                    right: parent.right
                    margins: Theme.paddingLarge
                }
                font.pixelSize: Theme.fontSizeSmall
                wrapMode: Text.Wrap
                text: qsTr("This feature is available for supporters only.")
            }
            Button {
                text: qsTr("PayPal Donate")
                anchors {
                    left: parent.left
                    right: parent.right
                    margins: Theme.paddingLarge * 2
                }
                onClicked: Qt.openUrlExternally(donate.url)
            }

            Label {
                text: qsTr("Supporter?")
                font.family: Theme.fontFamilyHeading
                color: Theme.highlightColor
                anchors.right: parent.right
                anchors.rightMargin: Theme.paddingMedium
            }
            Button {
                text: qsTr("Send me my code!")
                anchors {
                    left: parent.left
                    right: parent.right
                    margins: Theme.paddingLarge * 2
                }
                onClicked: Qt.openUrlExternally("mailto:support@xiaoka.com?subject=pebbled code request - "+
                                                donate.id + "&body=My paypal id is: ")
            }
            Label {
                text: qsTr("Activation code")
                font.family: Theme.fontFamilyHeading
                color: Theme.highlightColor
                anchors.left: parent.left
                anchors.leftMargin: Theme.paddingMedium
            }
            TextField {
                id: code
                anchors {
                    left: parent.left
                    right: parent.right
                    margins: Theme.paddingMedium
                }
                focus: true
            }
        }
    }
}