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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user