Skip to content

Commit 4fc4f70

Browse files
committed
FIX: allow using "white" as initial/default gradient
1 parent a2cc859 commit 4fc4f70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

larray_editor/arraywidget.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,12 @@ def __init__(self, parent, data=None, readonly=False, bg_value=None, bg_gradient
669669
gradient_chooser.setMaximumSize(120, 20)
670670
gradient_chooser.setIconSize(QSize(100, 20))
671671

672+
# add white option
672673
pixmap = QPixmap(100, 15)
673674
pixmap.fill(Qt.white)
674-
gradient_chooser.addItem(QIcon(pixmap), " ")
675+
gradient_chooser.addItem(QIcon(pixmap), "white")
675676

677+
# add other options
676678
pixmap.fill(Qt.transparent)
677679
painter = QPainter(pixmap)
678680
for name, gradient in available_gradients[1:]:

0 commit comments

Comments
 (0)