From e31ca079732909f3fc65e2e56076aa0ef0171339 Mon Sep 17 00:00:00 2001 From: pax Date: Sat, 11 Apr 2026 17:35:54 -0500 Subject: [PATCH] hide standard icon column from QMessageBox dialogs Targets the internal qt_msgboxex_icon_label by objectName via the base stylesheet, so confirm/warn/info dialogs across all 36+ call sites render text-only without per-call setIcon plumbing. behavior change --- booru_viewer/gui/app_runtime.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/booru_viewer/gui/app_runtime.py b/booru_viewer/gui/app_runtime.py index ab7f554..15ba9f6 100644 --- a/booru_viewer/gui/app_runtime.py +++ b/booru_viewer/gui/app_runtime.py @@ -148,6 +148,15 @@ QWidget#_slideshow_controls QLabel { background: transparent; color: white; } +/* Hide the standard icon column on every QMessageBox (question mark, + * warning triangle, info circle) so confirm dialogs are text-only. */ +QMessageBox QLabel#qt_msgboxex_icon_label { + image: none; + max-width: 0px; + max-height: 0px; + margin: 0px; + padding: 0px; +} """