-
Notifications
You must be signed in to change notification settings - Fork 5
/
RsGui.qml
94 lines (88 loc) · 2.32 KB
/
RsGui.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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import QtQuick 2.3
import QtQuick.Controls 1.1
import QtQuick.Window 2.0
ApplicationWindow {
id: main_window
title: qsTr("RetroShare")
property color lightBlue:"#5eb9e5"
property color darkBlue: "#2f5d73"
property color friendsBlue: "#007f7f"
property color biologyRed: "#7f0000"
property color workGrey: "#7f3300"
property color unGreen: "#007f00"
//TODO: provide window size in a device independent manner
width: 0.6*Screen.width
height: 0.7*Screen.height
menuBar: MenuBar {
Menu {
title: qsTr("File")
MenuItem {
text: qsTr("Exit")
onTriggered: Qt.quit();
}
}
Menu {
title: qsTr("Options")
}
Menu {
title: qsTr("About")
}
Menu {
title: qsTr("Help")
}
}
Rectangle {
id: background
anchors.fill: parent
color: "black"
Image {
anchors.right: parent.right
anchors.bottom: parent.bottom
source: "img/big-retroshare-symbol-inverted.svg"
fillMode: Image.PreserveAspectFit
width: parent.width/2.5
height: width
}
}
Status {
id: column0
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
width: parent.width/3
}
Rectangle {
id: vertical_sep0
anchors.left: column0.right
anchors.top: parent.top
anchors.topMargin: 0.1*column0.width
anchors.bottom: parent.bottom
anchors.bottomMargin: 0.1*column0.width
width: 1
color: "grey"
}
FriendsList {
id: column1
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: vertical_sep0.left
width: parent.width/3
}
Rectangle {
id: vertical_sep1
anchors.left: column1.right
anchors.top: parent.top
anchors.topMargin: 0.1*column0.width
anchors.bottom: parent.bottom
anchors.bottomMargin: 0.1*column0.width
width: 1
color: "grey"
}
Activities {
id: column2
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: vertical_sep1.left
width: parent.width/3
}
}