Make some minor changes and update test coverage

This commit is contained in:
Veronica Berglyd Olsen
2022-10-29 00:38:32 +02:00
parent 9b1c3fece2
commit 4a9ea459fa
6 changed files with 70 additions and 18 deletions
+5 -5
View File
@@ -246,12 +246,9 @@ class GuiTheme:
# Icons
self.iconCache.loadTheme(self.themeIcons)
# Apply Styles
qApp.setPalette(self._guiPalette)
# Update Dependant Colours
backCol = qApp.palette().window().color()
textCol = qApp.palette().windowText().color()
backCol = self._guiPalette.window().color()
textCol = self._guiPalette.windowText().color()
backLCol = backCol.lightnessF()
textLCol = textCol.lightnessF()
@@ -263,6 +260,9 @@ class GuiTheme:
self.helpText = [int(255*helpLCol)]*3
# Apply Styles
qApp.setPalette(self._guiPalette)
return True
def loadSyntax(self):