-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHomePage.qml
103 lines (84 loc) · 2.59 KB
/
HomePage.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
95
96
97
98
99
100
101
102
103
// Copyright (C) 2024 Adesh Singh
import QtQuick 2.9
import QtQuick.Controls.Imagine 2.3
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3
import QtLocation 5.6
import QtPositioning 5.6
Item {
id: mainItem
signal detectClicked()
signal searchClicked()
Behavior on implicitHeight {
NumberAnimation { duration: 200; }
}
Rectangle {
id: mainBorder
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
anchors.fill: parent
color: "#ffffff"
border.width: 1
border.color: "#dfdfdf"
radius: 15
}
ColumnLayout {
width: parent.width
Layout.fillWidth: true
spacing: 10
Item { height: 20; }
RowLayout {
Layout.alignment: Qt.AlignHCenter
width: parent.width
Layout.fillWidth: true
Item { width: 30; }
Image {
width: 185
sourceSize.width: 185
source: "qrc:/resources/logo.png"
}
Item { }
}
Text {
font.family: fontSystem.getContentFontBold.name
font.pixelSize: fontSystem.h1
font.bold: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
text: qsTr("IP - Info ")
color: "#171c26"
}
ColumnLayout {
Layout.alignment: Qt.AlignHCenter
width: parent.width
Layout.fillWidth: true
spacing: 20
Item { Layout.fillWidth: true; }
PrefsButton {
id: shortButton
implicitWidth: parent.width / 1.2
implicitHeight: 38
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
font.family: fontSystem.getContentFont.name
font.pixelSize: fontSystem.h4
text: "Detect"
onClicked: {
detectClicked()
}
}
PrefsButton {
id: detectButton
implicitWidth: parent.width / 1.2
implicitHeight: 38
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
font.family: fontSystem.getContentFont.name
font.pixelSize: fontSystem.h4
text: "Search"
onClicked: {
searchClicked()
}
}
Item { Layout.fillWidth: true; }
}
Item {}
}
Item {}
}