From 2597038fe50f034e8a2181a1ff9f3da1817d5776 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Fri, 28 May 2021 18:09:44 +0200 Subject: [PATCH] Prevent sidebar toolbar from folding If there is little space, Qt replaces some tools of the toolbar with an expandable menu indicated by an arrow. But this arrow is invisible in night mode. --- qt/aqt/browser/sidebar/toolbar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/browser/sidebar/toolbar.py b/qt/aqt/browser/sidebar/toolbar.py index 441ef7f07..92a282fd3 100644 --- a/qt/aqt/browser/sidebar/toolbar.py +++ b/qt/aqt/browser/sidebar/toolbar.py @@ -30,6 +30,7 @@ class SidebarToolbar(QToolBar): qconnect(self._action_group.triggered, self._on_action_group_triggered) self._setup_tools() self.setIconSize(QSize(16, 16)) + self.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) self.setStyle(QStyleFactory.create("fusion")) def _setup_tools(self) -> None: