From b986ddbd13cfaaa345f3139634ee074c74f00762 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Fri, 5 Apr 2024 15:57:28 +0100 Subject: [PATCH] Replace QStylePalette by SpyderPalette This follows the new API after PR spyder-ide/spyder#21844. --- spyder_unittest/widgets/datatree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spyder_unittest/widgets/datatree.py b/spyder_unittest/widgets/datatree.py index 427fbaa..616ad4a 100644 --- a/spyder_unittest/widgets/datatree.py +++ b/spyder_unittest/widgets/datatree.py @@ -16,7 +16,7 @@ from qtpy.QtWidgets import QMenu, QTreeView from spyder.api.config.mixins import SpyderConfigurationAccessor from spyder.config.base import get_translation -from spyder.utils.palette import QStylePalette, SpyderPalette +from spyder.utils.palette import SpyderPalette from spyder.utils.qthelpers import create_action # Local imports @@ -33,8 +33,8 @@ Category.OK: SpyderPalette.COLOR_SUCCESS_1, Category.FAIL: SpyderPalette.COLOR_ERROR_1, Category.SKIP: SpyderPalette.COLOR_WARN_1, - Category.PENDING: QStylePalette.COLOR_BACKGROUND_1, - Category.COVERAGE: QStylePalette.COLOR_ACCENT_1 + Category.PENDING: SpyderPalette.COLOR_BACKGROUND_1, + Category.COVERAGE: SpyderPalette.COLOR_ACCENT_1 } STATUS_COLUMN = 0