def on_palette_color_set(self, btn): """Changes the value of palette in gconf """ palette = [] for i in range(16): palette.append(hexify_color(self.get_widget("palette_%d" % i).get_color())) palette = ":".join(palette) self.client.set_string(KEY("/style/font/palette"), palette) self.set_palette_name(palette)
def on_palette_color_set(self, btn): """Changes the value of palette in gconf """ palette = [] for i in range(16): palette.append( hexify_color(self.get_widget('palette_%d' % i).get_color())) palette = ':'.join(palette) self.client.set_string(KEY('/style/font/palette'), palette) self.set_palette_name(palette)
def on_palette_color_set(self, btn): """Changes the value of palette in gconf """ palette = [] for i in range(18): palette.append(hexify_color( self.get_widget('palette_%d' % i).get_color())) palette = ':'.join(palette) self.client.set_string(KEY('/style/font/palette'), palette) self.client.set_string(KEY('/style/font/palette_name'), _('Custom')) self.set_palette_name('Custom') self.update_demo_palette(palette)
def on_palette_color_set(self, btn): """Changes the value of palette in dconf """ palette = [] for i in range(18): palette.append(hexify_color(self.get_widget('palette_%d' % i).get_color())) palette = ':'.join(palette) self.settings.styleFont.set_string('palette', palette) self.settings.styleFont.set_string('palette-name', _('Custom')) self.set_palette_name('Custom') self.update_demo_palette(palette)
def on_background_color_color_set(self, btn): """Changes the value of background_color in gconf """ color = hexify_color(btn.get_color()) self.client.set_string(KEY('/style/background/color'), color)
def on_font_color_color_set(self, btn): """Changes the value of font_color in gconf """ color = hexify_color(btn.get_color()) self.client.set_string(KEY('/style/font/color'), color)