From 1e7b6ab1938e4b98c95ce7ad790c83dd05499e04 Mon Sep 17 00:00:00 2001 From: pax Date: Sat, 4 Apr 2026 22:41:27 -0500 Subject: [PATCH] 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. --- booru_viewer/gui/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/booru_viewer/gui/app.py b/booru_viewer/gui/app.py index a1bb2df..c1dd883 100644 --- a/booru_viewer/gui/app.py +++ b/booru_viewer/gui/app.py @@ -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