This commit is contained in:
Veronica Berglyd Olsen
2025-06-02 23:28:28 +02:00
parent 44528b6173
commit b0ea1781e7
+2 -1
View File
@@ -137,8 +137,9 @@ def testGuiTheme_Main(qtbot, nwGUI, tstPaths):
assert theme._guiPalette.color(QPalette.ColorRole.Window).getRgb() == (0, 127, 255, 255)
# Non-existing value should return default colour
theme._setBaseColor("default", QColor(64, 64, 64, 255))
theme._setPalette(parser, "Palette", "stuff", QPalette.ColorRole.Window)
assert theme._guiPalette.color(QPalette.ColorRole.Window).getRgb() == (0, 0, 0, 255)
assert theme._guiPalette.color(QPalette.ColorRole.Window).getRgb() == (64, 64, 64, 255)
# qtbot.stop()