Remove dynamic toolbar background from minimalist mode

This commit is contained in:
Matthias Metelka 2023-01-14 03:20:44 +01:00
parent d4adde9091
commit 506a9ad208

View file

@ -118,6 +118,9 @@ class TopWebView(ToolbarWebView):
) )
def update_background_image(self) -> None: def update_background_image(self) -> None:
if self.mw.pm.minimalist_mode():
return
def set_background(val: str) -> None: def set_background(val: str) -> None:
# remove offset from copy # remove offset from copy
background = re.sub(r"-\d+px ", "0%", val) background = re.sub(r"-\d+px ", "0%", val)