mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[improvement][ui] allowing 'Oxygen' as a default style
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user