def _on_selection_font_color_changed(self, widget):
     config.selected_font_color = rgba_to_hex(widget.get_rgba())
     self._appearance_changed = True
     self._changed = True
 def _on_bg_color_dark_changed(self, widget):
     config.bg_colors[1] = rgba_to_hex(widget.get_rgba())
     config.bg_alpha[1] = widget.get_rgba().alpha
     self._appearance_changed = True
     self._changed = True
 def _on_selection_color_changed(self, widget):
     config.selected_bg_color = rgba_to_hex(widget.get_rgba())
     config.selected_alpha = widget.get_rgba().alpha
     self._appearance_changed = True
     self._changed = True
Exemple #4
0
def color_probe():
    """ Get system default selection color """
    s = Gtk.TreeView().get_style_context()
    found, color = s.lookup_color('theme_selected_bg_color')
    if not found : color = s.lookup_color('selected_bg_color')[1]
    return rgba_to_hex(color)