- 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:
Marius Stanciu
2022-01-11 23:21:18 +02:00
committed by Marius
parent 1ccf4b38c6
commit 2165ebe419
5 changed files with 18 additions and 5 deletions

View File

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