[improvement][ui] allowing 'Oxygen' as a default style

This commit is contained in:
Vinicius Moreira
2020-06-23 18:36:49 -03:00
parent d2c401cb53
commit cab309b023
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- sorting installed packages by their names - sorting installed packages by their names
- big refactoring regarding the components states (now it is easier to maintain the code) - big refactoring regarding the components states (now it is easier to maintain the code)
- some components compatibility with the system's color scheme - some components compatibility with the system's color scheme
- allowing "Oxygen" as a default style
### Fixes ### Fixes
- AppImage - AppImage

View File

@@ -20,7 +20,7 @@ def new_qt_application(app_config: dict, quit_on_last_closed: bool = False, name
if app_config['ui']['style']: if app_config['ui']['style']:
app.setStyle(str(app_config['ui']['style'])) app.setStyle(str(app_config['ui']['style']))
else: else:
if app.style().objectName().lower() not in {'fusion', 'breeze'}: if app.style().objectName().lower() not in {'fusion', 'breeze', 'oxygen'}:
app.setStyle('Fusion') app.setStyle('Fusion')
return app return app