- added an initial implementation of a dark theme using the qdarktheme (performance is not great and there are some artifacts); the theme is activated once the gray icons are checked in the Preferences
This commit is contained in:
@@ -39,6 +39,8 @@ from multiprocessing.connection import Listener, Client
|
||||
from multiprocessing import Pool
|
||||
import socket
|
||||
|
||||
import qdarktheme
|
||||
|
||||
# ####################################################################################################################
|
||||
# ################################### Imports part of FlatCAM #############################################
|
||||
# ####################################################################################################################
|
||||
@@ -1645,6 +1647,12 @@ 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