rgb_configurator: don't try setting invalid color
parent
ab39926ed4
commit
0471c554b6
|
|
@ -125,6 +125,8 @@ class RGBConfigurator(BasicEditor):
|
||||||
|
|
||||||
def on_underglow_color(self):
|
def on_underglow_color(self):
|
||||||
color = QColorDialog.getColor(self.current_color())
|
color = QColorDialog.getColor(self.current_color())
|
||||||
|
if not color.isValid():
|
||||||
|
return
|
||||||
self.underglow_color.setStyleSheet("QWidget { background-color: %s}" % color.name())
|
self.underglow_color.setStyleSheet("QWidget { background-color: %s}" % color.name())
|
||||||
h, s, v, a = color.getHsvF()
|
h, s, v, a = color.getHsvF()
|
||||||
if h < 0:
|
if h < 0:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue