Browse Source

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)
master
SomberNight 2 years ago
parent
commit
d660c57808
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/balance_dialog.py

2
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)

Loading…
Cancel
Save