def _color_dialog_changed(self, n, top, c):
self._button_save.setEnabled(True)<EOL>cp = self._colorpoint_list[n]<EOL>if self._checkboxes[n].isChecked():<EOL><INDENT>self.modify_colorpoint(n, cp[<NUM_LIT:0>], [c.red()/<NUM_LIT>, c.green()/<NUM_LIT>, c.blue()/<NUM_LIT>],<EOL>[c.red()/<NUM_LIT>, c.green()/<NUM_LIT>, c.blue()/<NUM_LIT>])<EOL>self._buttons_top_color   [n].setStyleSheet("<STR_LIT>"+str(c.red())+"<STR_LIT:U+002C>"+str(c.green())+"<STR_LIT:U+002C>"+str(c.green())+"<STR_LIT>")<EOL>self._buttons_bottom_color[n].setStyleSheet("<STR_LIT>"+str(c.red())+"<STR_LIT:U+002C>"+str(c.green())+"<STR_LIT:U+002C>"+str(c.green())+"<STR_LIT>")<EOL><DEDENT>elif top:<EOL><INDENT>self.modify_colorpoint(n, cp[<NUM_LIT:0>], cp[<NUM_LIT:1>], [c.red()/<NUM_LIT>, c.green()/<NUM_LIT>, c.blue()/<NUM_LIT>])<EOL>self._buttons_top_color   [n].setStyleSheet("<STR_LIT>"+str(c.red())+"<STR_LIT:U+002C>"+str(c.green())+"<STR_LIT:U+002C>"+str(c.green())+"<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>self.modify_colorpoint(n, cp[<NUM_LIT:0>], [c.red()/<NUM_LIT>, c.green()/<NUM_LIT>, c.blue()/<NUM_LIT>], cp[<NUM_LIT:2>])<EOL>self._buttons_bottom_color[n].setStyleSheet("<STR_LIT>"+str(c.red())+"<STR_LIT:U+002C>"+str(c.green())+"<STR_LIT:U+002C>"+str(c.green())+"<STR_LIT>")<EOL><DEDENT>
Updates the color of the slider.