forked from FEC-SIH-23/Blind-FEC-Extractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InitialPage.qml
105 lines (93 loc) · 3.7 KB
/
InitialPage.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
104
105
import QtQuick 2.9
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3
import QtQuick.Dialogs
Item {
id: initialPage
property alias inputText: textField.text
Rectangle {
id: rect1
color: "#D8D8D8"
height: parent.height
width: parent.width
Image {
source: "logo.png"
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
id: mainHeading
text: "FEC Encoding Detector"
font.pixelSize: 96/2
color: "#415861"
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -50 * 2 // Adjust this value as needed
}
Item {
// spacer item
id: spacer1
anchors.top: mainHeading.bottom
width: parent.width
height: 30
Rectangle { anchors.fill: parent; color: "#D8D8D8" } // to visualize the spacer
}
TextField {
id: textField
color: "#1E1A1D"
placeholderText: "Enter a Message String"
placeholderTextColor: "#333"
onTextChanged: window.inputText = text
anchors.top: spacer1.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenterOffset: 50 // Adjust this value as needed
background: Rectangle {
radius: 5
implicitWidth: (100) * 8
implicitHeight: (24) * 4
color: "#C7D3BF"
}
font.pixelSize: 26 // Increase the pixel size to increase the text size
}
Item {
// spacer item
id: spacer2
anchors.top: textField.bottom
width: parent.width
height: 30
Rectangle { anchors.fill: parent; color: "#D8D8D8" } // to visualize the spacer
}
RowLayout {
id: buttonGroup
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: spacer2.bottom
spacing: 40
AnalysisButton {
id: analysisButton
anchors.topMargin: 10
buttonText: "Analyse Message"
Layout.topMargin: 10
imageSource: "newAnalyse.png"
uploadFlag: 0
color: "#D2747B"
}
TextField {
text: "OR"
color: "#1E1A1D"
font.pixelSize: 15
background: Rectangle {
radius: 5
color: "#D8D8D8"
}
}
AnalysisButton {
id: uploadButton
anchors.leftMargin: 10
color: "#F26822"
buttonText: "Upload a file"
Layout.topMargin: 10
imageSource: "newUpload.png"
uploadFlag: 1
}
}
}
}