-
Notifications
You must be signed in to change notification settings - Fork 0
/
AlertInfo.qml
59 lines (54 loc) · 1.54 KB
/
AlertInfo.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
import QtQuick 2.0
import QtQuick.Controls 2.4
import QtGraphicalEffects 1.12
import QtQuick.Layouts 1.0
import QtQuick.Layouts 1.12
Popup {
id: id_popup
property alias pr_popupTitle: id_txtTitle.text
property alias pr_popupMessage: id_txtMessage.text
modal: true
focus: true
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
padding: 0
Rectangle {
id: id_PopupRectangle;
color: "#242C42";
radius: 10
border.color: globalFontColor
width: parent.width/2
height: parent.height/2
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Column{
Rectangle{
id: rec
color: "#171E32"
radius: 10
border.color: globalFontColor
width: id_PopupRectangle.width
height: id_PopupRectangle.height/5
Text {
id: id_txtTitle
// text: qsTr("Alert")
font.pixelSize: 20
color: globalFontColor
anchors.centerIn: parent
}
}
Text{
id: id_txtMessage
font.pixelSize: 15
color: globalFontColor
//text: qsTr("\n Incorrect \n Password")
}
}
}
background: DropShadow {
source: id_popup.contentItem
horizontalOffset: 0
verticalOffset: 5
radius: 10
samples: 7
color: "black"
}
}