From d2cdcc989bf8bf10f4f831b56c90edb613371432 Mon Sep 17 00:00:00 2001 From: glubsy Date: Sat, 1 Aug 2020 02:09:38 +0200 Subject: [PATCH] Fix 1 pixel sized color in color picker buttons * On Linux, even with 1 pixel size, the button is filled entirely with the color selected * On MacOS, the color pixmap stays at 1 pixel so we hard code the size to 16x16 --- qt/preferences_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/preferences_dialog.py b/qt/preferences_dialog.py index df15bf5d..67b7a9c7 100644 --- a/qt/preferences_dialog.py +++ b/qt/preferences_dialog.py @@ -349,7 +349,7 @@ class ColorPickerButton(QPushButton): self.setColor(color) def setColor(self, color): - size = QSize(1, 1) + size = QSize(16, 16) px = QPixmap(size) if color is None: size.width = 0