Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
    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)
Пример #5
0
 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)
Пример #6
0
 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)
Пример #7
0
 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)
Пример #8
0
 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)