Esempio n. 1
0
 def on_palette_contrast_down(self):
     command = ChangeColors(self.palette, self.palette.palette,
                            _("decreasing palette contrast"),
                            lambda clr: colors.contrast(clr, -0.1))
     self.undoStack.push(command)
Esempio n. 2
0
 def on_palette_desaturate(self):
     command = ChangeColors(self.palette, self.palette.palette,
                            _("desaturating palette colors"),
                            lambda clr: colors.desaturate(clr, 0.1))
     self.undoStack.push(command)
Esempio n. 3
0
 def on_palette_clockwise(self):
     command = ChangeColors(self.palette, self.palette.palette,
                            _("rotating palette colors clockwise"),
                            lambda clr: colors.increment_hue(clr, -0.03))
     self.undoStack.push(command)
Esempio n. 4
0
 def on_palette_lighter(self):
     command = ChangeColors(self.palette, self.palette.palette,
                            _("making palette colors lighter"),
                            lambda clr: colors.lighter(clr, 0.1))
     self.undoStack.push(command)