Fix theme test

This commit is contained in:
Veronica Berglyd Olsen
2025-01-12 19:36:47 +01:00
parent 1878adf78c
commit b83d7ca2cc
+1 -2
View File
@@ -25,7 +25,6 @@ from pathlib import Path
import pytest import pytest
from PyQt6.QtGui import QColor, QIcon, QPalette, QPixmap from PyQt6.QtGui import QColor, QIcon, QPalette, QPixmap
from PyQt6.QtWidgets import QApplication
from novelwriter import CONFIG, SHARED from novelwriter import CONFIG, SHARED
from novelwriter.common import NWConfigParser from novelwriter.common import NWConfigParser
@@ -152,7 +151,7 @@ def testGuiTheme_Theme(qtbot, monkeypatch, nwGUI, tstPaths):
assert mainTheme.loadTheme() is True assert mainTheme.loadTheme() is True
# This should load a standard palette # This should load a standard palette
wCol = QApplication.style().standardPalette().color(QPalette.ColorRole.Window).getRgb() wCol = QPalette().color(QPalette.ColorRole.Window).getRgb()
assert mainTheme._guiPalette.color(QPalette.ColorRole.Window).getRgb() == wCol assert mainTheme._guiPalette.color(QPalette.ColorRole.Window).getRgb() == wCol
# Mock Dark Theme # Mock Dark Theme