1
0

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)
This commit is contained in:
SomberNight
2024-01-15 15:08:59 +00:00
parent 66b24411e0
commit d660c57808

View File

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