Move lock_overlay/calendar theming to the ThemeManager
This commit is contained in:
parent
118e192639
commit
494b14136b
5 changed files with 154 additions and 157 deletions
|
|
@ -2,15 +2,16 @@ import pytest
|
|||
from PySide6.QtCore import QEvent
|
||||
from PySide6.QtWidgets import QWidget
|
||||
from bouquin.lock_overlay import LockOverlay
|
||||
from bouquin.theme import ThemeManager, ThemeConfig, Theme
|
||||
|
||||
|
||||
@pytest.mark.gui
|
||||
def test_lock_overlay_reacts_to_theme(qtbot):
|
||||
def test_lock_overlay_reacts_to_theme(app, qtbot):
|
||||
host = QWidget()
|
||||
qtbot.addWidget(host)
|
||||
host.show()
|
||||
|
||||
ol = LockOverlay(host, on_unlock=lambda: None)
|
||||
themes = ThemeManager(app, ThemeConfig(theme=Theme.LIGHT))
|
||||
ol = LockOverlay(host, on_unlock=lambda: None, themes=themes)
|
||||
qtbot.addWidget(ol)
|
||||
ol.show()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue