0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix(dark mode button): fixed dark mode button state for external updates, including auto

This commit is contained in:
2024-08-30 10:42:13 +02:00
parent ec9c8f2963
commit a3110d9814
3 changed files with 35 additions and 6 deletions

View File

@ -3,6 +3,7 @@ from unittest import mock
import pytest
from qtpy.QtCore import Qt
from bec_widgets.utils.colors import set_theme
from bec_widgets.widgets.dark_mode_button.dark_mode_button import DarkModeButton
# pylint: disable=unused-import
@ -19,6 +20,7 @@ def dark_mode_button(qtbot, mocked_client):
button = DarkModeButton(client=mocked_client)
qtbot.addWidget(button)
qtbot.waitExposed(button)
set_theme("light")
yield button