open color scheme as resource #25

allows the color scheme to be in a packaged package
This commit is contained in:
Mathieu PATUREL
2017-03-07 08:24:19 +11:00
parent 119acbb092
commit 76f580ba29
3 changed files with 7 additions and 8 deletions

View File

@ -128,5 +128,5 @@ def get_style(color_scheme):
with open(USER_STYLE_FILE) as fp:
css += '\n' + fp.read() + '\n'
if color_scheme:
css += pygments_from_theme(color_scheme)
css += pygments_from_theme(sublime.load_resource(color_scheme))
return ''.join([line.strip() + ' ' for line in css.splitlines()])