mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
refactor(waveform): use set theme for demo
This commit is contained in:
@ -596,14 +596,12 @@ class BECWaveformWidget(BECWidget, QWidget):
|
||||
|
||||
|
||||
def main(): # pragma: no cover
|
||||
|
||||
import bec_qthemes
|
||||
from bec_qthemes._os_appearance.listener import OSThemeSwitchListener
|
||||
from qtpy.QtWidgets import QApplication
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
bec_qthemes.setup_theme("auto")
|
||||
from bec_widgets.utils.colors import set_theme
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
set_theme("auto")
|
||||
widget = BECWaveformWidget()
|
||||
widget.show()
|
||||
sys.exit(app.exec_())
|
||||
|
Reference in New Issue
Block a user