示例#1
0
文件: theme.py 项目: editxt/editxt
        def selection_secondary_color(config):
            """Unused proof of concept

            Derived theme value that can be overridden in the config
            """
            value = config.get("theme.selection_secondary_color", Color(None))
            if value is None:
                color = hex_value(config["theme.selection_color"])
                value = get_color(rgb2gray(color))
            return value
示例#2
0
文件: config.py 项目: editxt/editxt
 def default_string(self):
     return hex_value(self.default)
示例#3
0
文件: config.py 项目: khairy/editxt
 def default_string(self):
     return hex_value(self.default)