From d660c57808d415334fcdeebcfe3df37e4e29678c Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 15 Jan 2024 15:08:59 +0000 Subject: [PATCH] qt BalanceToolButton: rm hardcoded min size "18 pixels" is too large when using qdarkstyle on "low" DPI screens, on Windows (if there is also a high DPI screen connected as another monitor... eh) --- electrum/gui/qt/balance_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/balance_dialog.py b/electrum/gui/qt/balance_dialog.py index a16fe8dd9..94f9ac7cd 100644 --- a/electrum/gui/qt/balance_dialog.py +++ b/electrum/gui/qt/balance_dialog.py @@ -122,7 +122,7 @@ class BalanceToolButton(QToolButton, PieChartObject): self._update_size() def _update_size(self): - size = max(18, font_height(self)) + size = round(font_height(self) * 1.1) self.R = QRect(6, 3, size, size)