- started to mod the qdarktheme to fit the application

This commit is contained in:
Marius Stanciu
2022-01-12 00:44:25 +02:00
committed by Marius
parent 2165ebe419
commit d7be3c3c3b
4 changed files with 1031 additions and 53 deletions

View File

@@ -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 #######################################################
# #################################################################################################################
# #################################################################################################################