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:
pax 2026-04-04 22:41:27 -05:00
parent 392d026296
commit 1e7b6ab193

View File

@ -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