Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Sep 5, 2023
1 parent 3fc2691 commit 0278c40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/superqt/combobox/_colormap_combobox.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ def paint(
else:
painter.drawText(text_rect, option.displayAlignment, text)

# # use user friendly color name if available
# painter.setPen(_pick_font_color(colormap))
# short_name = colormap.name.rsplit(":", 1)[-1]
# painter.drawText(rect, text_align, short_name)

class QColormapComboBox(QComboBox):
"""A drop down menu for selecting colors.
Expand Down

0 comments on commit 0278c40

Please sign in to comment.