-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUniLogo.qml
92 lines (75 loc) · 2.28 KB
/
UniLogo.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
import QtQuick 2.0
Rectangle {
id: root
property int orentation: Qt.Horizontal
function isHorizontal() {
return root.orentation == Qt.Horizontal;
}
color: "transparent"
border.color: "green"
border.width: 0
Rectangle {
id: logo
width: 680
height: 80
property int leftMargin: 10
property int topMargin: 10
color: "transparent"
border.color: "red"
border.width: parent.border.width
transform: [
Rotation {
origin.x: 0
origin.y: 0
angle: root.isHorizontal() ? 0.0 : -90.0
},
Scale {
id: logoScale
origin.x: 0
origin.y: 0
xScale: root.isHorizontal() ?
root.height / logo.height :
(root.width / logo.height < root.height / logo.width) ? root.width / logo.height : root.height / logo.width
yScale: xScale
},
Translate {
x: root.isHorizontal() ? root.width / 2 - (logo.width * logoScale.xScale) / 2 : 0
y: root.isHorizontal() ? 0 : root.height / 2 + (logo.width * logoScale.xScale) / 2
}
]
Text {
id: firstLine
x: parent.leftMargin
y: parent.topMargin
text: "UNIVERSITAS SCIENTIARUM SZEGEDIENSIS"
color: "#002285"
font.pixelSize: 22
font.family: "Arial"
}
Text {
x: parent.leftMargin + 375
y: parent.topMargin + 18
text: "UNIVERSITY OF SZEGED"
color: "#002285"
font.pixelSize: 22
font.weight: Font.ExtraBold
font.family: "Arial Black"
}
Text {
x: parent.leftMargin + 300
y: parent.topMargin + 35
text: "Department of Software Engineering"
color: "#C09100"
font.pixelSize: 22
font.italic: true
font.family: "Times New Roman"
}
Rectangle {
x: parent.leftMargin + 645
y: parent.topMargin + 5
width: 15
height: 15
color: "#C09100"
}
}
}