-
Notifications
You must be signed in to change notification settings - Fork 130
/
ui_dialog.py
217 lines (189 loc) · 8.63 KB
/
ui_dialog.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
###########################################################################################
### CODE: WRITTEN BY: ANJAL.P AUGUST 11 2020 ###
### PROJECT: PELLIS Z1 ###
### PURPOSE: WINDOWS/LINUX/MAC OS FLAT MODERN UI ###
### BASED ON QT DESIGNER, PySide2 ###
### USE CASE: TEMPLATE FOR SOFTWARES ###
### LICENCE: MIT OPENSOURCE LICENCE ###
### ###
### CODE IS FREE TO USE AND MODIFY ###
###########################################################################################
###########################################################################################
# CAUTION #
# THI FILE IS AUTOGENERATED BY THE PYSIDE2-UIC. DO OPEN THE CORRESPONDING ui_main.ui #
# FILE FOR YOU TO MODIFY AND HEAD OVER TO THE MAIN.PY OR UI_FUNCTION.PY FILE FOR FURTHER #
# FUNCTION MODIFICATION. #
###########################################################################################
from PySide2.QtCore import (QCoreApplication, QDate, QDateTime, QMetaObject,
QObject, QPoint, QRect, QSize, QTime, QUrl, Qt)
from PySide2.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont,
QFontDatabase, QIcon, QKeySequence, QLinearGradient, QPalette, QPainter,
QPixmap, QRadialGradient)
from PySide2.QtWidgets import *
class Ui_Dialog(object):
def setupUi(self, Dialog):
if not Dialog.objectName():
Dialog.setObjectName(u"Dialog")
Dialog.resize(450, 235)
Dialog.setMinimumSize(QSize(450, 235))
Dialog.setMaximumSize(QSize(450, 235))
Dialog.setStyleSheet(u"QDialog {\n"
" background:rgb(51,51,51);\n"
"}")
self.verticalLayout = QVBoxLayout(Dialog)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.frame_2 = QFrame(Dialog)
self.frame_2.setObjectName(u"frame_2")
self.frame_2.setStyleSheet(u"background:rgb(51,51,51);")
self.frame_2.setFrameShape(QFrame.NoFrame)
self.frame_2.setFrameShadow(QFrame.Plain)
self.verticalLayout_2 = QVBoxLayout(self.frame_2)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.verticalLayout_2.setContentsMargins(2, 2, 2, 2)
self.frame_top = QFrame(self.frame_2)
self.frame_top.setObjectName(u"frame_top")
self.frame_top.setMinimumSize(QSize(0, 55))
self.frame_top.setMaximumSize(QSize(16777215, 55))
self.frame_top.setStyleSheet(u"background:rgb(91,90,90);")
self.frame_top.setFrameShape(QFrame.NoFrame)
self.frame_top.setFrameShadow(QFrame.Plain)
self.horizontalLayout = QHBoxLayout(self.frame_top)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.lab_heading = QLabel(self.frame_top)
self.lab_heading.setObjectName(u"lab_heading")
font = QFont()
font.setFamily(u"Segoe UI")
font.setPointSize(14)
self.lab_heading.setFont(font)
self.lab_heading.setStyleSheet(u"color:rgb(255,255,255);")
self.lab_heading.setAlignment(Qt.AlignCenter)
self.horizontalLayout.addWidget(self.lab_heading)
self.bn_min = QPushButton(self.frame_top)
self.bn_min.setObjectName(u"bn_min")
self.bn_min.setMinimumSize(QSize(55, 55))
self.bn_min.setMaximumSize(QSize(55, 55))
self.bn_min.setStyleSheet(u"QPushButton {\n"
" border: none;\n"
" background-color: rgb(51,51,51);\n"
"}\n"
"QPushButton:hover {\n"
" background-color: rgb(0,143,150);\n"
"}\n"
"QPushButton:pressed { \n"
" background-color: rgb(51,51,51);\n"
"}")
icon = QIcon()
icon.addFile(u"icons/1x/hideAsset 53.png", QSize(), QIcon.Normal, QIcon.Off)
self.bn_min.setIcon(icon)
self.bn_min.setIconSize(QSize(22, 12))
self.bn_min.setAutoDefault(False)
self.bn_min.setFlat(True)
self.horizontalLayout.addWidget(self.bn_min)
self.bn_close = QPushButton(self.frame_top)
self.bn_close.setObjectName(u"bn_close")
self.bn_close.setMinimumSize(QSize(55, 55))
self.bn_close.setMaximumSize(QSize(55, 55))
self.bn_close.setStyleSheet(u"QPushButton {\n"
" border: none;\n"
" background-color: rgb(51,51,51);\n"
"}\n"
"QPushButton:hover {\n"
" background-color: rgb(0,143,150);\n"
"}\n"
"QPushButton:pressed { \n"
" background-color: rgb(51,51,51);\n"
"}")
icon1 = QIcon()
icon1.addFile(u"icons/1x/closeAsset 43.png", QSize(), QIcon.Normal, QIcon.Off)
self.bn_close.setIcon(icon1)
self.bn_close.setIconSize(QSize(22, 22))
self.bn_close.setAutoDefault(False)
self.bn_close.setFlat(True)
self.horizontalLayout.addWidget(self.bn_close)
self.verticalLayout_2.addWidget(self.frame_top)
self.frame_bottom = QFrame(self.frame_2)
self.frame_bottom.setObjectName(u"frame_bottom")
self.frame_bottom.setStyleSheet(u"background:rgb(91,90,90);")
self.frame_bottom.setFrameShape(QFrame.StyledPanel)
self.frame_bottom.setFrameShadow(QFrame.Raised)
self.gridLayout = QGridLayout(self.frame_bottom)
self.gridLayout.setObjectName(u"gridLayout")
self.gridLayout.setHorizontalSpacing(5)
self.gridLayout.setVerticalSpacing(0)
self.gridLayout.setContentsMargins(15, -1, 35, 0)
self.bn_east = QPushButton(self.frame_bottom)
self.bn_east.setObjectName(u"bn_east")
self.bn_east.setMinimumSize(QSize(69, 25))
self.bn_east.setMaximumSize(QSize(69, 25))
font1 = QFont()
font1.setFamily(u"Segoe UI")
font1.setPointSize(12)
self.bn_east.setFont(font1)
self.bn_east.setStyleSheet(u"QPushButton {\n"
" border: 2px solid rgb(51,51,51);\n"
" border-radius: 5px; \n"
" color:rgb(255,255,255);\n"
" background-color: rgb(51,51,51);\n"
"}\n"
"QPushButton:hover {\n"
" border: 2px solid rgb(0,143,150);\n"
" background-color: rgb(0,143,150);\n"
"}\n"
"QPushButton:pressed { \n"
" border: 2px solid rgb(0,143,150);\n"
" background-color: rgb(51,51,51);\n"
"}")
self.bn_east.setAutoDefault(False)
self.gridLayout.addWidget(self.bn_east, 1, 3, 1, 1)
self.lab_icon = QLabel(self.frame_bottom)
self.lab_icon.setObjectName(u"lab_icon")
self.lab_icon.setMinimumSize(QSize(40, 40))
self.lab_icon.setMaximumSize(QSize(40, 40))
self.gridLayout.addWidget(self.lab_icon, 0, 0, 1, 1)
self.bn_west = QPushButton(self.frame_bottom)
self.bn_west.setObjectName(u"bn_west")
self.bn_west.setMinimumSize(QSize(69, 25))
self.bn_west.setMaximumSize(QSize(69, 25))
self.bn_west.setFont(font1)
self.bn_west.setStyleSheet(u"QPushButton {\n"
" border: 2px solid rgb(51,51,51);\n"
" border-radius: 5px; \n"
" color:rgb(255,255,255);\n"
" background-color: rgb(51,51,51);\n"
"}\n"
"QPushButton:hover {\n"
" border: 2px solid rgb(0,143,150);\n"
" background-color: rgb(0,143,150);\n"
"}\n"
"QPushButton:pressed { \n"
" border: 2px solid rgb(0,143,150);\n"
" background-color: rgb(51,51,51);\n"
"}")
self.bn_west.setAutoDefault(False)
self.gridLayout.addWidget(self.bn_west, 1, 2, 1, 1)
self.lab_message = QLabel(self.frame_bottom)
self.lab_message.setObjectName(u"lab_message")
self.lab_message.setFont(font1)
self.lab_message.setStyleSheet(u"color:rgb(255,255,255);")
self.lab_message.setWordWrap(True)
self.gridLayout.addWidget(self.lab_message, 0, 1, 1, 3)
self.verticalLayout_2.addWidget(self.frame_bottom)
self.verticalLayout.addWidget(self.frame_2)
self.retranslateUi(Dialog)
QMetaObject.connectSlotsByName(Dialog)
# setupUi
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(QCoreApplication.translate("Dialog", u"Dialog", None))
self.lab_heading.setText("")
self.bn_min.setText("")
self.bn_close.setText("")
self.bn_east.setText("")
self.lab_icon.setText("")
self.bn_west.setText("")
self.lab_message.setText("")
# retranslateUi