Skip to content

Commit

Permalink
Covert scheme to new format and update tests and labels etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Nov 29, 2019
1 parent 3cdb248 commit 495149c
Show file tree
Hide file tree
Showing 9 changed files with 273 additions and 510 deletions.
6 changes: 3 additions & 3 deletions .github/labels.yml
Expand Up @@ -7,10 +7,10 @@ extended_glob: true

rules:
- labels: ['C: infrastructure']
patterns: ['*|-@(*.md|*.py|*.sublime-@(keymap|menu|settings|commands))', '.github/**']
patterns: ['*|-@(*.md|*.py|*.sublime-@(keymap|menu|settings|commands|color-scheme))', '.github/**']

- labels: ['C: source']
patterns: ['**/*.py|-tests']
patterns: ['**/@(*.py|*.sublime-@(keymap|menu|settings|commands|color-scheme))|-tests']

- labels: ['C: docs']
patterns: ['**/*.md|docs/**']
Expand Down Expand Up @@ -43,7 +43,7 @@ rules:
patterns: ['lib/browsers.py']

- labels: ['C: settings']
patterns: ['*.sublime-@(keymap|menu|settings|commands)']
patterns: ['*.sublime-@(keymap|menu|settings|commands|color-scheme)']

# Label management

Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
@@ -1,3 +1,7 @@
# ExportHtml 2.14.0

- **NEW**: Default themes converted to `sublime-color-scheme` format.

# ExportHtml 2.13.0

- **NEW**: Add support for `hwb()` and `alpha()`/`a()`.
Expand Down
180 changes: 180 additions & 0 deletions ColorSchemes/Print Color.sublime-color-scheme
@@ -0,0 +1,180 @@
{
"name": "Print Color",
"author": "Unknown",
"variables":
{
"black": "#000000",
"cyan": "#34a7bd",
"cyan2": "#6ac4d6",
"green": "#427e00",
"grey": "#3b3a32",
"grey2": "#a5a5a5",
"grey3": "#858585",
"grey4": "#2e2e2e",
"orange": "#cb6500",
"orange2": "#9d550f",
"orange3": "#ffe792",
"purple": "#7c4fcd",
"red": "#c70040",
"white": "#ffffff",
"white2": "#e5e5e5",
"white3": "#f8f8f0",
"white4": "#f8f8f2",
"yellow": "#8f8634"
},
"globals":
{
"foreground": "var(black)",
"background": "var(white)",
"caret": "var(black)",
"invisibles": "var(grey)",
"line_highlight": "color(var(grey4) alpha(0.13))",
"selection": "var(cyan)",
"selection_foreground": "var(white)",
"inactive_selection": "color(var(orange2) alpha(0.67))",
"inactive_selection_foreground": "var(cyan2)",
"gutter": "var(white2)",
"gutter_foreground": "var(grey3)",
"active_guide": "var(cyan)",
"find_highlight_foreground": "var(black)",
"find_highlight": "var(orange3)",
"brackets_options": "underline",
"brackets_foreground": "color(var(white4) alpha(0.65))",
"bracket_contents_options": "underline",
"bracket_contents_foreground": "color(var(white4) alpha(0.65))",
"tags_options": "stippled_underline"
},
"rules":
[
{
"name": "Comment",
"scope": "comment",
"foreground": "var(grey2)"
},
{
"name": "String",
"scope": "string",
"foreground": "var(yellow)"
},
{
"name": "Number",
"scope": "constant.numeric",
"foreground": "var(purple)"
},
{
"name": "Built-in constant",
"scope": "constant.language",
"foreground": "var(purple)"
},
{
"name": "User-defined constant",
"scope": "constant.character, constant.other",
"foreground": "var(purple)"
},
{
"name": "Variable",
"scope": "variable"
},
{
"name": "Keyword",
"scope": "keyword",
"foreground": "var(red)"
},
{
"name": "Storage",
"scope": "storage",
"foreground": "var(red)"
},
{
"name": "Storage type",
"scope": "storage.type",
"foreground": "var(cyan)",
"font_style": "italic"
},
{
"name": "Class name",
"scope": "entity.name.class",
"foreground": "var(green)",
"font_style": "underline"
},
{
"name": "Inherited class",
"scope": "entity.other.inherited-class",
"foreground": "var(green)",
"font_style": "italic underline"
},
{
"name": "Function name",
"scope": "entity.name.function",
"foreground": "var(green)"
},
{
"name": "Function argument",
"scope": "variable.parameter",
"foreground": "var(orange)",
"font_style": "italic"
},
{
"name": "Tag name",
"scope": "entity.name.tag",
"foreground": "var(red)"
},
{
"name": "Tag attribute",
"scope": "entity.other.attribute-name",
"foreground": "var(green)"
},
{
"name": "Library function",
"scope": "support.function",
"foreground": "var(cyan)"
},
{
"name": "Library constant",
"scope": "support.constant",
"foreground": "var(cyan)"
},
{
"name": "Library class/type",
"scope": "support.type, support.class",
"foreground": "var(cyan)",
"font_style": "italic"
},
{
"name": "Library variable",
"scope": "support.other.variable"
},
{
"name": "Invalid",
"scope": "invalid",
"foreground": "var(white3)",
"background": "var(red)"
},
{
"name": "Invalid deprecated",
"scope": "invalid.deprecated",
"foreground": "var(white3)",
"background": "var(purple)"
},
{
"name": "JSON String",
"scope": "meta.structure.dictionary.json string.quoted.double.json",
"foreground": "var(yellow)"
},
{
"name": "diff.deleted",
"scope": "markup.deleted",
"foreground": "var(red)"
},
{
"name": "diff.inserted",
"scope": "markup.inserted",
"foreground": "var(green)"
},
{
"name": "diff.changed",
"scope": "markup.changed",
"foreground": "var(yellow)"
}
]
}
74 changes: 74 additions & 0 deletions ColorSchemes/Print Grayscale.sublime-color-scheme
@@ -0,0 +1,74 @@
{
"name": "Print Grayscale",
"author": "Unknown",
"variables":
{
"black": "#000000",
"grey": "#a5a5a5",
"grey2": "#888888",
"grey3": "#666666",
"grey4": "#323232",
"grey5": "#2e2e2e",
"white": "#ffffff",
"white2": "#e5e5e5"
},
"globals":
{
"foreground": "var(black)",
"background": "var(white)",
"caret": "var(black)",
"invisibles": "var(grey4)",
"line_highlight": "color(var(grey5) alpha(0.13))",
"selection": "var(grey3)",
"selection_foreground": "var(white)",
"inactive_selection": "var(grey2)",
"gutter": "var(white2)",
"gutter_foreground": "var(black)",
"active_guide": "var(grey2)",
"find_highlight_foreground": "var(black)",
"find_highlight": "var(grey3)",
"brackets_options": "underline",
"brackets_foreground": "var(black)",
"bracket_contents_options": "underline",
"bracket_contents_foreground": "var(black)",
"tags_options": "stippled_underline"
},
"rules":
[
{
"name": "Comment",
"scope": "comment",
"foreground": "var(grey)"
},
{
"name": "Storage type",
"scope": "storage.type",
"foreground": "var(black)",
"font_style": "italic"
},
{
"name": "Class name",
"scope": "entity.name.class",
"foreground": "var(black)",
"font_style": "underline"
},
{
"name": "Inherited class",
"scope": "entity.other.inherited-class",
"foreground": "var(black)",
"font_style": "italic underline"
},
{
"name": "Function argument",
"scope": "variable.parameter",
"foreground": "var(black)",
"font_style": "italic"
},
{
"name": "Library class/type",
"scope": "support.type, support.class",
"foreground": "var(black)",
"font_style": "italic"
}
]
}

0 comments on commit 495149c

Please sign in to comment.