-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui_mainwindow.py
150 lines (145 loc) · 6.08 KB
/
ui_mainwindow.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
# Source: /UI/Home.ui
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
# ui code
MainWindow.setObjectName("MainWindow")
MainWindow.resize(861, 535)
MainWindow.setStyleSheet("@import url('https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css');\n font-family: \'Roboto\', sans-serif;\n"
" color: #FFF;\n"
" background-color: #36393f;")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 400, 300, 90))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.Github = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.Github.setStyleSheet("\n"
"\n"
"* {\n"
" display: inline-block;\n"
" padding: 12px 30px;\n"
" font-size: 18px;\n"
" font-weight: bold;\n"
" text-transform: uppercase;\n"
" background-color: rgb(89, 89, 89);\n"
" color: #FFF;\n"
" border-radius: 4px;\n"
" text-decoration: none;\n"
" transition: background-color 0.3s ease;\n"
"}\n"
"\n"
"*:hover {\n"
" background-color: rgb(40, 40, 40);\n"
" color: #FFF;\n"
"}")
self.Github.setObjectName("Github")
self.horizontalLayout.addWidget(self.Github)
self.Discord = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.Discord.setStyleSheet("\n"
"\n"
"* {\n"
" display: inline-block;\n"
" padding: 12px 30px;\n"
" font-size: 18px;\n"
" font-weight: bold;\n"
" text-transform: uppercase;\n"
" background-color: #4e56cb;\n"
" color: #FFF;\n"
" border-radius: 4px;\n"
" text-decoration: none;\n"
" transition: background-color 0.3s ease;\n"
"}\n"
"\n"
"*:hover {\n"
" background-color: #3641d4;\n"
" color: #FFF;\n"
"}")
self.Discord.setObjectName("Discord")
self.horizontalLayout.addWidget(self.Discord)
self.themeText = QtWidgets.QTextEdit(self.centralwidget)
self.themeText.setGeometry(QtCore.QRect(220, 170, 451, 87))
font = QtGui.QFont()
font.setFamily("Roboto,sans-serif")
font.setPointSize(15)
font.setBold(True)
font.setWeight(75)
self.themeText.setFont(font)
self.themeText.setStyleSheet("*{\n"
" text-align: center;\n"
"}")
self.themeText.setObjectName("themeText")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(310, 80, 251, 81))
font = QtGui.QFont()
font.setFamily("Roboto,sans-serif")
font.setPointSize(25)
self.label.setFont(font)
self.label.setStyleSheet("*{\n"
" text-align: center;\n"
"}")
self.label.setObjectName("label")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(330, 270, 211, 51))
self.pushButton.setStyleSheet(" * {\n"
" display: inline-block;\n"
" padding: 12px 30px;\n"
" font-size: 18px;\n"
" font-weight: bold;\n"
" text-transform: uppercase;\n"
" background-color: #65b557;\n"
" color: #FFF;\n"
" border-radius: 4px;\n"
" text-decoration: none;\n"
" transition: background-color 0.3s ease;\n"
" }\n"
" *:hover{\n"
" background-color: #1f8c0b;\n"
" color: #FFF;\n"
" }")
self.pushButton.setObjectName("pushButton")
self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_2.setGeometry(QtCore.QRect(580, 420, 271, 51))
self.pushButton_2.setStyleSheet(" * {\n"
" display: inline-block;\n"
" padding: 12px 30px;\n"
" font-size: 18px;\n"
" font-weight: bold;\n"
" text-transform: uppercase;\n"
" background-color: red;\n"
" color: #FFF;\n"
" border-radius: 4px;\n"
" text-decoration: none;\n"
" transition: background-color 0.3s ease;\n"
" }\n"
" *:hover{\n"
" background-color: rgb(140, 0, 0);\n"
" color: #FFF;\n"
" }")
self.pushButton_2.setObjectName("pushButton_2")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 861, 24))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.Github.setText(_translate("MainWindow", "GitHub"))
self.Discord.setText(_translate("MainWindow", "Discord"))
self.themeText.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Roboto,sans-serif\'; font-size:15pt; font-weight:600; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Enter your theme link</p></body></html>"))
self.label.setText(_translate("MainWindow", "Theme Cord!"))
self.pushButton.setText(_translate("MainWindow", "Apply"))
self.pushButton_2.setText(_translate("MainWindow", "Remove all themes"))