summaryrefslogtreecommitdiff
path: root/qml/EgoCreate.qml
blob: 5b769e29859ac1e103c790abf9fd433bcc5efe8e (plain) (blame)
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
import QtQuick.Window 2.1;
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1

import secushare 1.0

Rectangle {

    Rectangle {
        id: headerBanner
        anchors.top: parent.top
        anchors.left: parent.left
        anchors.right: parent.right
        height: 60
        color: "white"

        Image {
            id: imageBanner
            anchors.top: parent.top
            anchors.margins: 5
            anchors.topMargin: 10
            //anchors.verticalCenter: parent.verticalCenter
            height: 30
            fillMode: Image.PreserveAspectFit
            source: "images/add-black.png"
        }

        Label {
            text: "Create Ego"
            anchors.left: imageBanner.right
            anchors.leftMargin: 5
            anchors.top: parent.top
            anchors.topMargin: 10
            font.family: ubuntuFont.name
            font.pointSize: 22
            wrapMode : Text.Wrap
            elide : Text.ElideRight
        }

    }
    Rectangle {
        anchors.top: headerBanner.bottom
        anchors.left: parent.left
        anchors.right: parent.right
        height: 1
        color: "#D1D1D1"

    }

    ColumnLayout {
        anchors.top: headerBanner.bottom
        anchors.topMargin: 20
        spacing: 10

        RowLayout {
            Layout.alignment: Qt.AlignTop
            spacing: 5

            Label {
                text: "Ego Name"
            }

            TextField {
                id: newName
            }

            Button {
                text: "Create"
                onClicked: {
                    // FIXME: App.gnunet.identity.createEgo(newName.text)
                }
            }
        }
    }
}