- added a way to allow patching FCLabel widget colors for certain cases without having to pass them each instance

This commit is contained in:
Marius Stanciu
2022-04-18 11:48:16 +03:00
committed by Marius
parent b70da1b4b2
commit 7d2fd7c77a
5 changed files with 27 additions and 17 deletions

View File

@@ -52,6 +52,9 @@ class MainGUI(QtWidgets.QMainWindow):
final_save = QtCore.pyqtSignal(name='saveBeforeExit')
# screenChanged = QtCore.pyqtSignal(QtGui.QScreen, QtGui.QScreen)
def theme_safe_color(self, color):
return color
# https://www.w3.org/TR/SVG11/types.html#ColorKeywords
def __init__(self, app):
super(MainGUI, self).__init__()
@@ -60,6 +63,8 @@ class MainGUI(QtWidgets.QMainWindow):
self.app = app
self.decimals = self.app.decimals
FCLabel.patching_text_color = self.theme_safe_color
# Divine icon pack by Ipapun @ finicons.com
# #######################################################################