- started to mod the qdarktheme to fit the application
This commit is contained in:
15
app_Main.py
15
app_Main.py
@@ -40,6 +40,8 @@ from multiprocessing import Pool
|
||||
import socket
|
||||
|
||||
import qdarktheme
|
||||
import qdarktheme.themes.dark.stylesheet as qdarksheet
|
||||
from appGUI import style_sheet
|
||||
|
||||
# ####################################################################################################################
|
||||
# ################################### Imports part of FlatCAM #############################################
|
||||
@@ -608,6 +610,13 @@ class App(QtCore.QObject):
|
||||
else:
|
||||
self.resource_location = 'assets/resources/dark_resources'
|
||||
|
||||
# #############################################################################################################
|
||||
# ######################################### DARK THEME ########################################################
|
||||
# #############################################################################################################
|
||||
if self.defaults["global_gray_icons"] is True:
|
||||
qdarksheet.STYLE_SHEET = style_sheet.D_STYLE_SHEET # patching so I can do my own changes to the theme
|
||||
self.qapp.setStyleSheet(qdarktheme.load_stylesheet())
|
||||
|
||||
# ###########################################################################################################
|
||||
# ####################################### Auto-complete KEYWORDS ############################################
|
||||
# ######################## Setup after the Defaults class was instantiated ##################################
|
||||
@@ -1647,12 +1656,6 @@ class App(QtCore.QObject):
|
||||
"Please reboot the application to update."))
|
||||
self.defaults.old_defaults_found = False
|
||||
|
||||
# #############################################################################################################
|
||||
# ######################################### DARK THEME ########################################################
|
||||
# #############################################################################################################
|
||||
if self.defaults["global_gray_icons"] is True:
|
||||
self.qapp.setStyleSheet(qdarktheme.load_stylesheet())
|
||||
|
||||
# ######################################### INIT FINISHED #######################################################
|
||||
# #################################################################################################################
|
||||
# #################################################################################################################
|
||||
|
||||
Reference in New Issue
Block a user