Closed zdposter closed 3 years ago
I would like to store it to settings, so it can be automatically used at next application run.
class RuntimeStylesheets(QMainWindow, QtStyleTools): def __init__(self): super().__init__() self.main = QUiLoader().load('main_window.ui', self) self.add_menu_theme(self.main, self.main.menuStyles)
Hi @zdposter
The variables for the theme are available as environment variables, for example the theme name is QTMATERIAL_THEME, so in python: os.environ.get('QTMATERIAL_THEME')
QTMATERIAL_THEME
os.environ.get('QTMATERIAL_THEME')
Thanks it works.
I would like to store it to settings, so it can be automatically used at next application run.