UN-GCPDS / qt-material

Material inspired stylesheet for PySide2, PySide6, PyQt5 and PyQt6
https://qt-material.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
2.3k stars 242 forks source link

Can't change to default themes #3

Closed maicol07 closed 3 years ago

maicol07 commented 4 years ago

After changing (in runtime) to a material theme, it's impossible to revert to a Qt default one (e.g. windowsvista)

YeisonCardona commented 4 years ago

On GNU/Linux the default theme is set just by applying an empty style with QMainWindow.setStyleSheet(''), which method are you using?, also, I add the default theme to the themes switcher menu.

maicol07 commented 4 years ago

On GNU/Linux the default theme is set just by applying an empty style with QMainWindow.setStyleSheet(''), which method are you using?, also, I add the default theme to the themes switcher menu.

No, on Windows we have 3 different standard themes: windowsvista (default), windows (xp like) and Fusion. To apply one of these themes, if that is not in pyside_material.list_themes() I use QApplication.setStyle()

YeisonCardona commented 3 years ago

Hi @maicol07, windowsvista, windows and Fusion are Styles, are different from the themes and works independently, you can change it with apply_stylesheet along with the theme.

apply_stylesheet(app, style='Fusion', theme='light_blue.xml')