UPDATE stylesheet

Now it's dark theme
This commit is contained in:
Ninnjah 2020-10-21 01:17:24 +03:00 committed by GitHub
parent cbef52643e
commit 27d2b5a693
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,21 @@ class Ui_MainWindow(object):
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icon.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setStyleSheet("/*background-color: #303030;*/\n"
"\n"
"QComboBox::drop-down {\n"
" border: 1px solid #D3D3D3;\n"
" border-radius: 2px;\n"
" background-color: #303030;\n"
"} \n"
"\n"
"QComboBox QAbstractItemView{\n"
" background-color: #4f4f4f;\n"
" color: #999999;\n"
" \n"
" selection-background-color: #999999;\n"
" selection-color: #4f4f4f;\n"
"}")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
@ -34,54 +49,148 @@ class Ui_MainWindow(object):
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setMinimumSize(QtCore.QSize(420, 450))
self.centralwidget.setMaximumSize(QtCore.QSize(420, 450))
self.centralwidget.setStyleSheet("background-color: #303030")
self.centralwidget.setObjectName("centralwidget")
self.save_button = QtWidgets.QPushButton(self.centralwidget)
self.save_button.setGeometry(QtCore.QRect(10, 360, 401, 71))
font = QtGui.QFont()
font.setFamily("Consolas")
font.setPointSize(28)
font.setBold(False)
font.setWeight(50)
font.setStrikeOut(False)
font.setKerning(False)
self.save_button.setFont(font)
self.save_button.setStyleSheet("background-color: #323031;\n"
"color: #6b696a;")
self.save_button.setDefault(False)
self.save_button.setFlat(False)
self.save_button.setObjectName("save_button")
self.verticalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(110, 10, 301, 311))
self.verticalLayoutWidget.setGeometry(QtCore.QRect(110, 10, 301, 321))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.combo0 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo0.setTabletTracking(False)
self.combo0.setAcceptDrops(False)
self.combo0.setAutoFillBackground(False)
self.combo0.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo0.setDuplicatesEnabled(False)
self.combo0.setFrame(False)
self.combo0.setObjectName("combo0")
self.verticalLayout.addWidget(self.combo0)
self.combo1 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo1.setTabletTracking(False)
self.combo1.setAcceptDrops(False)
self.combo1.setAutoFillBackground(False)
self.combo1.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo1.setDuplicatesEnabled(False)
self.combo1.setFrame(False)
self.combo1.setModelColumn(0)
self.combo1.setObjectName("combo1")
self.verticalLayout.addWidget(self.combo1)
self.combo2 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo2.setTabletTracking(False)
self.combo2.setAcceptDrops(False)
self.combo2.setAutoFillBackground(False)
self.combo2.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo2.setDuplicatesEnabled(False)
self.combo2.setFrame(False)
self.combo2.setObjectName("combo2")
self.verticalLayout.addWidget(self.combo2)
self.combo3 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo3.setTabletTracking(False)
self.combo3.setAcceptDrops(False)
self.combo3.setAutoFillBackground(False)
self.combo3.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo3.setDuplicatesEnabled(False)
self.combo3.setFrame(False)
self.combo3.setObjectName("combo3")
self.verticalLayout.addWidget(self.combo3)
self.combo4 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo4.setTabletTracking(False)
self.combo4.setAcceptDrops(False)
self.combo4.setAutoFillBackground(False)
self.combo4.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo4.setDuplicatesEnabled(False)
self.combo4.setFrame(False)
self.combo4.setObjectName("combo4")
self.verticalLayout.addWidget(self.combo4)
self.combo5 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo5.setTabletTracking(False)
self.combo5.setAcceptDrops(False)
self.combo5.setAutoFillBackground(False)
self.combo5.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo5.setDuplicatesEnabled(False)
self.combo5.setFrame(False)
self.combo5.setObjectName("combo5")
self.verticalLayout.addWidget(self.combo5)
self.combo6 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo6.setTabletTracking(False)
self.combo6.setAcceptDrops(False)
self.combo6.setAutoFillBackground(False)
self.combo6.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo6.setDuplicatesEnabled(False)
self.combo6.setFrame(False)
self.combo6.setObjectName("combo6")
self.verticalLayout.addWidget(self.combo6)
self.combo7 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo7.setTabletTracking(False)
self.combo7.setAcceptDrops(False)
self.combo7.setAutoFillBackground(False)
self.combo7.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo7.setDuplicatesEnabled(False)
self.combo7.setFrame(False)
self.combo7.setObjectName("combo7")
self.verticalLayout.addWidget(self.combo7)
self.combo8 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo8.setTabletTracking(False)
self.combo8.setAcceptDrops(False)
self.combo8.setAutoFillBackground(False)
self.combo8.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo8.setDuplicatesEnabled(False)
self.combo8.setFrame(False)
self.combo8.setObjectName("combo8")
self.verticalLayout.addWidget(self.combo8)
self.combo9 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo9.setTabletTracking(False)
self.combo9.setAcceptDrops(False)
self.combo9.setAutoFillBackground(False)
self.combo9.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo9.setDuplicatesEnabled(False)
self.combo9.setFrame(False)
self.combo9.setObjectName("combo9")
self.verticalLayout.addWidget(self.combo9)
self.combo10 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo10.setTabletTracking(False)
self.combo10.setAcceptDrops(False)
self.combo10.setAutoFillBackground(False)
self.combo10.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo10.setDuplicatesEnabled(False)
self.combo10.setFrame(False)
self.combo10.setObjectName("combo10")
self.verticalLayout.addWidget(self.combo10)
self.combo11 = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.combo11.setTabletTracking(False)
self.combo11.setAcceptDrops(False)
self.combo11.setAutoFillBackground(False)
self.combo11.setStyleSheet("background-color: #393738;\n"
"color:#6b696a;")
self.combo11.setDuplicatesEnabled(False)
self.combo11.setFrame(False)
self.combo11.setObjectName("combo11")
self.verticalLayout.addWidget(self.combo11)
self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.centralwidget)
@ -92,62 +201,74 @@ class Ui_MainWindow(object):
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.hotkey_1 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_1.setLayoutDirection(QtCore.Qt.LeftToRight)
self.hotkey_1.setStyleSheet("text-align: right;")
self.hotkey_1.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_1.setFlat(True)
self.hotkey_1.setObjectName("hotkey_1")
self.verticalLayout_2.addWidget(self.hotkey_1)
self.hotkey_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_2.setStyleSheet("text-align: right;")
self.hotkey_2.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_2.setFlat(True)
self.hotkey_2.setObjectName("hotkey_2")
self.verticalLayout_2.addWidget(self.hotkey_2)
self.hotkey_3 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_3.setStyleSheet("text-align: right;")
self.hotkey_3.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_3.setFlat(True)
self.hotkey_3.setObjectName("hotkey_3")
self.verticalLayout_2.addWidget(self.hotkey_3)
self.hotkey_4 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_4.setStyleSheet("text-align: right;")
self.hotkey_4.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_4.setFlat(True)
self.hotkey_4.setObjectName("hotkey_4")
self.verticalLayout_2.addWidget(self.hotkey_4)
self.hotkey_5 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_5.setStyleSheet("text-align: right;")
self.hotkey_5.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_5.setFlat(True)
self.hotkey_5.setObjectName("hotkey_5")
self.verticalLayout_2.addWidget(self.hotkey_5)
self.hotkey_6 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_6.setStyleSheet("text-align: right;")
self.hotkey_6.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_6.setFlat(True)
self.hotkey_6.setObjectName("hotkey_6")
self.verticalLayout_2.addWidget(self.hotkey_6)
self.hotkey_7 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_7.setStyleSheet("text-align: right;")
self.hotkey_7.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_7.setFlat(True)
self.hotkey_7.setObjectName("hotkey_7")
self.verticalLayout_2.addWidget(self.hotkey_7)
self.hotkey_8 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_8.setStyleSheet("text-align: right;")
self.hotkey_8.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_8.setFlat(True)
self.hotkey_8.setObjectName("hotkey_8")
self.verticalLayout_2.addWidget(self.hotkey_8)
self.hotkey_9 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_9.setStyleSheet("text-align: right;")
self.hotkey_9.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_9.setFlat(True)
self.hotkey_9.setObjectName("hotkey_9")
self.verticalLayout_2.addWidget(self.hotkey_9)
self.hotkey_10 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_10.setStyleSheet("text-align: right;")
self.hotkey_10.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_10.setFlat(True)
self.hotkey_10.setObjectName("hotkey_10")
self.verticalLayout_2.addWidget(self.hotkey_10)
self.hotkey_11 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_11.setStyleSheet("text-align: right;")
self.hotkey_11.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_11.setFlat(True)
self.hotkey_11.setObjectName("hotkey_11")
self.verticalLayout_2.addWidget(self.hotkey_11)
self.hotkey_12 = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
self.hotkey_12.setStyleSheet("text-align: right;")
self.hotkey_12.setStyleSheet("text-align: right;\n"
" color: #6b696a;")
self.hotkey_12.setFlat(True)
self.hotkey_12.setObjectName("hotkey_12")
self.verticalLayout_2.addWidget(self.hotkey_12)
@ -161,7 +282,7 @@ class Ui_MainWindow(object):
self.info_label.setMidLineWidth(0)
self.info_label.setObjectName("info_label")
self.select_label = QtWidgets.QLabel(self.centralwidget)
self.select_label.setGeometry(QtCore.QRect(8, 320, 401, 41))
self.select_label.setGeometry(QtCore.QRect(10, 320, 401, 41))
self.select_label.setLayoutDirection(QtCore.Qt.LeftToRight)
self.select_label.setStyleSheet("background-color: black;")
self.select_label.setText("")
@ -179,7 +300,7 @@ class Ui_MainWindow(object):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "SundPood"))
self.save_button.setText(_translate("MainWindow", "Save"))
self.hotkey_1.setText(_translate("MainWindow", "hotkey 1"))
self.hotkey_1.setText(_translate("MainWindow", "f1"))
self.hotkey_2.setText(_translate("MainWindow", "PushButton"))
self.hotkey_3.setText(_translate("MainWindow", "PushButton"))
self.hotkey_4.setText(_translate("MainWindow", "PushButton"))