-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuInicial.qml
More file actions
87 lines (79 loc) · 2.43 KB
/
MenuInicial.qml
File metadata and controls
87 lines (79 loc) · 2.43 KB
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
import QtQuick 2.6
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.12
Rectangle{
id:ratangulo
width: parent.width / 2
height: cadastro.height / 2
anchors.centerIn: parent
color: "#fff"
anchors.leftMargin: 30
border.color: "#d3d3d3";
radius: 10
border.width: 0.3
visible: false
signal emitSignalFundo();
signal buscarPorNome();
Column{
width: parent.width
height: parent.height / 1.6
anchors.bottom: parent.bottom
Button{
id:btnNovoBilhete
width: mouseAreaNovoBilhete.pressed ? parent.width / 1.5 : parent.width / 2
height: mouseAreaNovoBilhete.pressed ? parent.height / 4.5 : parent.height / 5
anchors.horizontalCenter: parent.horizontalCenter
Label {
text: "Novo Bilhete"
font.family: "Helvetica"
font.pointSize: mouseAreaNovoBilhete.pressed ? 20 :15
color: mouseAreaNovoBilhete.containsMouse ? "#fff" : "black"
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
opacity: mouseAreaNovoBilhete.containsMouse ? 1 : 0.6
}
background: Rectangle{
radius: 10
visible: true
color: mouseAreaNovoBilhete.containsMouse ? "#11cdef" /*ou #0fdbff*/ : "#dfe0e1" }
MouseArea{
id:mouseAreaNovoBilhete
anchors.fill: parent
hoverEnabled: true
onClicked: {
ratangulo.emitSignalFundo()
}
}
}
Button{
id:btnBuscas
anchors.horizontalCenter: parent.horizontalCenter
width: mouseAreaBuscarBilhete.pressed ? parent.width / 1.5 : parent.width / 2
height: mouseAreaBuscarBilhete.pressed ? parent.height / 4.5 : parent.height / 5
Label {
text: "Buscas"
font.family: "Helvetica"
font.pointSize: mouseAreaBuscarBilhete.pressed ? 20 :15
color: mouseAreaBuscarBilhete.containsMouse ? "#fff" : "black"
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
opacity: mouseAreaBuscarBilhete.containsMouse ? 1 : 0.6
}
spacing: 10
anchors.top: btnNovoBilhete.bottom
anchors.topMargin: 2
background: Rectangle{
radius: 10
color: mouseAreaBuscarBilhete.containsMouse ? "#11cdef" /*ou #0fdbff*/ : "#dfe0e1"}
MouseArea{
id:mouseAreaBuscarBilhete
anchors.fill: parent
hoverEnabled: true
onClicked: {
ratangulo.buscarPorNome();
}
}
}
}
}