Switch to Fusion style when custom.qss is loaded
System Qt themes (Breeze etc.) conflict with custom QSS, causing broken button rendering. Fusion style gives QSS full control.
This commit is contained in:
parent
392d026296
commit
1e7b6ab193
@ -1637,6 +1637,8 @@ def run() -> None:
|
||||
custom_css = data_dir() / "custom.qss"
|
||||
if custom_css.exists():
|
||||
try:
|
||||
# Use Fusion style so QSS has full control over rendering
|
||||
app.setStyle("Fusion")
|
||||
app.setStyleSheet(custom_css.read_text())
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user