-
Notifications
You must be signed in to change notification settings - Fork 1
/
TitleBar.qml
52 lines (43 loc) · 1.14 KB
/
TitleBar.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
import QtQuick 2.0
import "helpers.js" as Helpers
Rectangle {
color: "black"
Rectangle {
id: title
color: "#1fd26a"
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
width: parent.width*4/5
height: parent.height
radius: 5
Text {
anchors.verticalCenter: parent.verticalCenter
text: " " + root.title
font.pixelSize: parent.height*0.3
font.family: "Open Sans,Arial,Helvetica,sans-serif"
}
}
Rectangle {
id: menuButton
color: "black"
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
width: parent.width/5
height: parent.height
border.color: "white"
border.width: root.menuActive ? 4 : 0
radius: 5
Text {
text: "•••"
color: "white"
anchors.centerIn: parent
font.pixelSize: parent.width*0.4
}
MouseArea {
anchors.fill: parent
onClicked: Helpers.toggleMenu()
}
}
}