-
Notifications
You must be signed in to change notification settings - Fork 0
/
intro.py
321 lines (271 loc) · 14.1 KB
/
intro.py
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
from PySide2.QtCore import (QCoreApplication, QMetaObject, QObject, QPoint,
QRect, QSize, QUrl, Qt)
from PySide2.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont,
QFontDatabase, QIcon, QLinearGradient, QPalette, QPainter, QPixmap,
QRadialGradient)
from PySide2.QtWidgets import *
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(659, 500)
MainWindow.setWindowIcon(QIcon('mona-l.jpg'))
MainWindow.setMinimumSize(QSize(500, 500))
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.drop_shadow_frame = QFrame(self.centralwidget)
self.drop_shadow_frame.setObjectName(u"drop_shadow_frame")
self.drop_shadow_frame.setGeometry(QRect(10, 10, 636, 442))
self.drop_shadow_frame.setStyleSheet(u"background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(42, 44, 111, 255), stop:0.521368 rgba(28, 29, 73, 255));\n"
"border-radius: 10px;")
self.drop_shadow_frame.setFrameShape(QFrame.NoFrame)
self.drop_shadow_frame.setFrameShadow(QFrame.Raised)
self.gridLayout = QGridLayout(self.drop_shadow_frame)
self.gridLayout.setObjectName(u"gridLayout")
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.credits_bar = QFrame(self.drop_shadow_frame)
self.credits_bar.setObjectName(u"credits_bar")
self.credits_bar.setMaximumSize(QSize(16777215, 30))
self.credits_bar.setStyleSheet(u"background-color: rgb(33, 33, 75);")
self.credits_bar.setFrameShape(QFrame.NoFrame)
self.credits_bar.setFrameShadow(QFrame.Raised)
self.horizontalLayout_2 = QHBoxLayout(self.credits_bar)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.frame_label_credits = QFrame(self.credits_bar)
self.frame_label_credits.setObjectName(u"frame_label_credits")
self.frame_label_credits.setFrameShape(QFrame.StyledPanel)
self.frame_label_credits.setFrameShadow(QFrame.Raised)
self.verticalLayout_3 = QVBoxLayout(self.frame_label_credits)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.verticalLayout_3.setContentsMargins(15, 0, 0, 0)
self.bmw = QPushButton(self.frame_label_credits)
self.bmw.setObjectName(u"bmw")
self.bmw.setCursor(QCursor(Qt.OpenHandCursor))
self.bmw.setStyleSheet(u"color: rgb(60, 231, 195);\n"
"font:14px;")
self.verticalLayout_3.addWidget(self.bmw)
self.label_credits = QLabel(self.frame_label_credits)
self.label_credits.setObjectName(u"label_credits")
font = QFont()
font.setFamily(u"Roboto")
self.label_credits.setFont(font)
self.label_credits.setStyleSheet(u"color: rgb(128, 102, 168);")
self.verticalLayout_3.addWidget(self.label_credits)
self.horizontalLayout_2.addWidget(self.frame_label_credits)
self.frame_grip = QFrame(self.credits_bar)
self.frame_grip.setObjectName(u"frame_grip")
self.frame_grip.setMinimumSize(QSize(30, 30))
self.frame_grip.setMaximumSize(QSize(30, 30))
self.frame_grip.setStyleSheet(u"padding: 5px;")
self.frame_grip.setFrameShape(QFrame.StyledPanel)
self.frame_grip.setFrameShadow(QFrame.Raised)
self.horizontalLayout_2.addWidget(self.frame_grip)
self.gridLayout.addWidget(self.credits_bar, 2, 0, 1, 1)
self.content_bar = QFrame(self.drop_shadow_frame)
self.content_bar.setObjectName(u"content_bar")
self.content_bar.setStyleSheet(u"background-color: none;")
self.content_bar.setFrameShape(QFrame.StyledPanel)
self.content_bar.setFrameShadow(QFrame.Raised)
self.verticalLayout_4 = QVBoxLayout(self.content_bar)
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
self.stackedWidget = QStackedWidget(self.content_bar)
self.stackedWidget.setObjectName(u"stackedWidget")
self.stackedWidget.setStyleSheet(u"background-color: none;")
self.page_home = QWidget()
self.page_home.setObjectName(u"page_home")
self.verticalLayout_5 = QVBoxLayout(self.page_home)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.frame_content_home = QFrame(self.page_home)
self.frame_content_home.setObjectName(u"frame_content_home")
self.frame_content_home.setFrameShape(QFrame.StyledPanel)
self.frame_content_home.setFrameShadow(QFrame.Raised)
self.verticalLayout_9 = QVBoxLayout(self.frame_content_home)
self.verticalLayout_9.setObjectName(u"verticalLayout_9")
self.frame_infos = QFrame(self.frame_content_home)
self.frame_infos.setObjectName(u"frame_infos")
self.frame_infos.setFrameShape(QFrame.StyledPanel)
self.frame_infos.setFrameShadow(QFrame.Raised)
self.horizontalLayout_4 = QHBoxLayout(self.frame_infos)
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.frame_circle_1 = QFrame(self.frame_infos)
self.frame_circle_1.setObjectName(u"frame_circle_1")
self.frame_circle_1.setMinimumSize(QSize(250, 250))
self.frame_circle_1.setMaximumSize(QSize(250, 250))
self.frame_circle_1.setStyleSheet(u"QFrame{\n"
" border: 5px solid rgb(60, 231, 195);\n"
" border-radius: 125px;\n"
"}\n"
"QFrame:hover {\n"
" border: 5px solid rgb(105, 95, 148);\n"
"}")
self.frame_circle_1.setFrameShape(QFrame.StyledPanel)
self.frame_circle_1.setFrameShadow(QFrame.Raised)
self.verticalLayout_6 = QVBoxLayout(self.frame_circle_1)
self.verticalLayout_6.setSpacing(10)
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
self.verticalLayout_6.setContentsMargins(10, 50, 10, 50)
self.pushButton_encode = QPushButton(self.frame_circle_1)
self.pushButton_encode.setObjectName(u"pushButton_encode")
self.pushButton_encode.setCursor(QCursor(Qt.OpenHandCursor))
self.pushButton_encode.setStyleSheet(u"font: 18pt \"MS Shell Dlg 2\";")
self.verticalLayout_6.addWidget(self.pushButton_encode)
self.horizontalLayout_4.addWidget(self.frame_circle_1)
self.frame_circle_2 = QFrame(self.frame_infos)
self.frame_circle_2.setObjectName(u"frame_circle_2")
self.frame_circle_2.setMinimumSize(QSize(250, 250))
self.frame_circle_2.setMaximumSize(QSize(250, 250))
self.frame_circle_2.setStyleSheet(u"QFrame{\n"
" border: 5px solid rgb(60, 231, 195);\n"
" border-radius: 125px;\n"
"}\n"
"QFrame:hover {\n"
" border: 5px solid rgb(105, 95, 148);\n"
"}")
self.frame_circle_2.setFrameShape(QFrame.StyledPanel)
self.frame_circle_2.setFrameShadow(QFrame.Raised)
self.verticalLayout_7 = QVBoxLayout(self.frame_circle_2)
self.verticalLayout_7.setSpacing(10)
self.verticalLayout_7.setObjectName(u"verticalLayout_7")
self.verticalLayout_7.setContentsMargins(10, 50, 10, 50)
self.pushButton_decode = QPushButton(self.frame_circle_2)
self.pushButton_decode.setObjectName(u"pushButton_decode")
self.pushButton_decode.setCursor(QCursor(Qt.OpenHandCursor))
self.pushButton_decode.setStyleSheet(u"\n"
"font: 20pt \"MS Shell Dlg 2\";")
self.verticalLayout_7.addWidget(self.pushButton_decode)
self.horizontalLayout_4.addWidget(self.frame_circle_2)
self.verticalLayout_9.addWidget(self.frame_infos)
self.frame_texts = QFrame(self.frame_content_home)
self.frame_texts.setObjectName(u"frame_texts")
self.frame_texts.setMinimumSize(QSize(600, 0))
self.frame_texts.setMaximumSize(QSize(16777215, 100))
self.frame_texts.setFrameShape(QFrame.StyledPanel)
self.frame_texts.setFrameShadow(QFrame.Raised)
self.verticalLayout_10 = QVBoxLayout(self.frame_texts)
self.verticalLayout_10.setObjectName(u"verticalLayout_10")
self.verticalLayout_9.addWidget(self.frame_texts)
self.verticalLayout_5.addWidget(self.frame_content_home)
self.stackedWidget.addWidget(self.page_home)
self.page_credits = QWidget()
self.page_credits.setObjectName(u"page_credits")
self.frame_content_credits = QFrame(self.page_credits)
self.frame_content_credits.setObjectName(u"frame_content_credits")
self.frame_content_credits.setGeometry(QRect(90, 70, 120, 80))
self.frame_content_credits.setFrameShape(QFrame.StyledPanel)
self.frame_content_credits.setFrameShadow(QFrame.Raised)
self.stackedWidget.addWidget(self.page_credits)
self.verticalLayout_4.addWidget(self.stackedWidget)
self.gridLayout.addWidget(self.content_bar, 1, 0, 1, 1)
self.title_bar = QFrame(self.drop_shadow_frame)
self.title_bar.setObjectName(u"title_bar")
self.title_bar.setMaximumSize(QSize(16777215, 50))
self.title_bar.setStyleSheet(u"background-color: none;")
self.title_bar.setFrameShape(QFrame.NoFrame)
self.title_bar.setFrameShadow(QFrame.Raised)
self.horizontalLayout = QHBoxLayout(self.title_bar)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.frame_title = QFrame(self.title_bar)
self.frame_title.setObjectName(u"frame_title")
self.frame_title.setMinimumSize(QSize(0, 50))
font1 = QFont()
font1.setFamily(u"Roboto Condensed Light")
font1.setPointSize(14)
self.frame_title.setFont(font1)
self.frame_title.setFrameShape(QFrame.StyledPanel)
self.frame_title.setFrameShadow(QFrame.Raised)
self.label_title2 = QLabel(self.frame_title)
self.label_title2.setObjectName(u"label_title2")
self.label_title2.setGeometry(QRect(20, 20, 128, 23))
font2 = QFont()
font2.setFamily(u"Roboto")
font2.setPointSize(14)
self.label_title2.setFont(font2)
self.label_title2.setStyleSheet(u"color: rgb(60, 231, 195);")
self.horizontalLayout.addWidget(self.frame_title)
self.frame_btns = QFrame(self.title_bar)
self.frame_btns.setObjectName(u"frame_btns")
self.frame_btns.setMaximumSize(QSize(100, 16777215))
self.frame_btns.setFrameShape(QFrame.StyledPanel)
self.frame_btns.setFrameShadow(QFrame.Raised)
self.horizontalLayout_3 = QHBoxLayout(self.frame_btns)
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.btn_maximize = QPushButton(self.frame_btns)
self.btn_maximize.setObjectName(u"btn_maximize")
self.btn_maximize.setMinimumSize(QSize(16, 16))
self.btn_maximize.setMaximumSize(QSize(17, 17))
self.btn_maximize.setStyleSheet(u"QPushButton {\n"
" border: none;\n"
" border-radius: 8px; \n"
" background-color: rgb(85, 255, 127);\n"
" visibility: hidden; \n "
"}\n"
"QPushButton:hover { \n"
" background-color: rgba(85, 255, 127, 150);\n"
"}")
self.horizontalLayout_3.addWidget(self.btn_maximize)
self.btn_minimize = QPushButton(self.frame_btns)
self.btn_minimize.setObjectName(u"btn_minimize")
self.btn_minimize.setMinimumSize(QSize(16, 16))
self.btn_minimize.setMaximumSize(QSize(17, 17))
self.btn_minimize.setStyleSheet(u"QPushButton {\n"
" border: none;\n"
" border-radius: 8px; \n"
" background-color: rgb(255, 170, 0);\n"
"}\n"
"QPushButton:hover { \n"
" background-color: rgba(255, 170, 0, 150);\n"
"}")
self.horizontalLayout_3.addWidget(self.btn_minimize)
self.btn_close = QPushButton(self.frame_btns)
self.btn_close.setObjectName(u"btn_close")
self.btn_close.setMinimumSize(QSize(16, 16))
self.btn_close.setMaximumSize(QSize(17, 17))
self.btn_close.setStyleSheet(u"QPushButton {\n"
" border: none;\n"
" border-radius: 8px; \n"
" background-color: rgb(255, 0, 0);\n"
"}\n"
"QPushButton:hover { \n"
" background-color: rgba(255, 0, 0, 150);\n"
"}")
self.horizontalLayout_3.addWidget(self.btn_close)
self.horizontalLayout.addWidget(self.frame_btns)
self.gridLayout.addWidget(self.title_bar, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.stackedWidget.setCurrentIndex(0)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"STEGANOREX-INTRO", None))
self.bmw.setText(QCoreApplication.translate("MainWindow", u"Help", None))
self.label_credits.setText(QCoreApplication.translate("MainWindow", u"By: AA", None))
#if QT_CONFIG(statustip)
self.pushButton_encode.setStatusTip(QCoreApplication.translate("MainWindow", u"Choose the cover image", None))
#endif // QT_CONFIG(statustip)
#if QT_CONFIG(whatsthis)
self.pushButton_encode.setWhatsThis(QCoreApplication.translate("MainWindow", u"Choose the cover image", None))
#endif // QT_CONFIG(whatsthis)
self.pushButton_encode.setText(QCoreApplication.translate("MainWindow", u"Encode", None))
self.pushButton_decode.setText(QCoreApplication.translate("MainWindow", u"Decode", None))
self.label_title2.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>STEGANOREX</p></body></html>", None))
#if QT_CONFIG(tooltip)
self.btn_maximize.setToolTip(QCoreApplication.translate("MainWindow", u"Maximize", None))
#endif // QT_CONFIG(tooltip)
self.btn_maximize.setText("")
#if QT_CONFIG(tooltip)
self.btn_minimize.setToolTip(QCoreApplication.translate("MainWindow", u"Minimize", None))
#endif // QT_CONFIG(tooltip)
self.btn_minimize.setText("")
#if QT_CONFIG(tooltip)
self.btn_close.setToolTip(QCoreApplication.translate("MainWindow", u"Close", None))
#endif // QT_CONFIG(tooltip)
self.btn_close.setText("")
# retranslateUi