in colorSchemeTool.py [0:0]
def attr_from_textmate(settings, old_value, background):
result = AttributeValue()
if ('foreground' in settings) and ((old_value == None) or (old_value.default_fore != IGNORE_COLOR_VALUE)):
result.foreground = color_from_textmate(settings['foreground'])
if ('background' in settings) and ((old_value == None) or (old_value.default_back != IGNORE_COLOR_VALUE)):
result.background = color_from_textmate(settings['background'], background)
if 'fontStyle' in settings:
tm_font_style = settings['fontStyle']
result.font_style = font_style_from_textmate(tm_font_style)
if 'underline' in tm_font_style:
result.effect_type = 1
return result