mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
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
This commit is contained in:
parent
2620d0080c
commit
d2cdcc989b
@ -349,7 +349,7 @@ class ColorPickerButton(QPushButton):
|
|||||||
self.setColor(color)
|
self.setColor(color)
|
||||||
|
|
||||||
def setColor(self, color):
|
def setColor(self, color):
|
||||||
size = QSize(1, 1)
|
size = QSize(16, 16)
|
||||||
px = QPixmap(size)
|
px = QPixmap(size)
|
||||||
if color is None:
|
if color is None:
|
||||||
size.width = 0
|
size.width = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user