From c4031ca1dafa466dcb90721abaee234e0167d2fb Mon Sep 17 00:00:00 2001 From: AmN <16545063+amnweb@users.noreply.github.com> Date: Sat, 7 Feb 2026 18:09:49 +0100 Subject: [PATCH] refactor(bar): simplify update_app_bar method by removing scale_screen_height parameter - Adjusted the method to determine screen height scaling internally based on device pixel ratio. --- src/core/bar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/bar.py b/src/core/bar.py index d3b1d1b10..8fca74189 100644 --- a/src/core/bar.py +++ b/src/core/bar.py @@ -159,10 +159,11 @@ def on_geometry_changed(self, geo: QRect) -> None: if self._is_auto_width: QTimer.singleShot(0, self._sync_auto_width) - def update_app_bar(self, scale_screen_height=False) -> None: + def update_app_bar(self) -> None: if self.app_bar_manager: # Always register AppBar for notifications, but only reserve space when windows_app_bar is true reserve_space = self._window_flags["windows_app_bar"] + scale_screen_height = self._target_screen.devicePixelRatio() > 1.0 self.app_bar_manager.create_appbar( self.winId().__int__(), self.app_bar_edge,