From 506a9ad208480122ba4ae9086d3e1358f701fb65 Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Sat, 14 Jan 2023 03:20:44 +0100 Subject: [PATCH] Remove dynamic toolbar background from minimalist mode --- qt/aqt/toolbar.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt/aqt/toolbar.py b/qt/aqt/toolbar.py index ef38839d4..476093a27 100644 --- a/qt/aqt/toolbar.py +++ b/qt/aqt/toolbar.py @@ -118,6 +118,9 @@ class TopWebView(ToolbarWebView): ) def update_background_image(self) -> None: + if self.mw.pm.minimalist_mode(): + return + def set_background(val: str) -> None: # remove offset from copy background = re.sub(r"-\d+px ", "0%", val)