Skip to content

Commit

Permalink
Merge pull request daylerees#214 from danvirsen/master
Browse files Browse the repository at this point in the history
Added patterns for vscode
  • Loading branch information
daylerees authored Nov 29, 2017
2 parents df20074 + 1fca02a commit 613662b
Show file tree
Hide file tree
Showing 179 changed files with 41,037 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This package currently supports colour schemes for:
- [Highlight JS](http://highlightjs.org/)
- [Xcode](https://developer.apple.com/xcode/)
- [Bootstrap](http://getbootstrap.com/)
- [Visual Studio Code](https://code.visualstudio.com/)
- Previews - HTML previews of all schemes.

## Preview
Expand Down Expand Up @@ -59,6 +60,7 @@ Installation of the colour schemes depends greatly upon the type of software tha
* [Textmate 2](#textmate-2)
* [VIM](#vim)
* [Xcode Colour Schemes](#xcode-colour-schemes)
* [Visual Studio Code](#visual-studio-code)

### Sublime Text

Expand Down Expand Up @@ -176,6 +178,10 @@ and you can then select it using `m-x load-theme` or set it as the default.

*Heads up. It'll ask you whether you really want to load the theme because it involves running lisp code. Feel free to check everything's safe before you do*

### Visual Studio Code

Copy the theme you want from the `vscode` directory to `~/.vscode/extensions` (Mac/Linux) or `%USERPROFILE%\.vscode\extensions` (Windows). Start vscode (or reload the window) and select the theme in your preferences.

## Requests

- **Hyrule** - Requested by Taylor Otwell of Laravel, a Zelda theme!
Expand Down
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<delete dir="${basedir}/xcode"/>
<delete dir="${basedir}/highlightjs"/>
<delete dir="${basedir}/emacs"/>
<delete dir="${basedir}/vscode"/>
</target>

<!-- Generate themes. -->
Expand Down
27 changes: 27 additions & 0 deletions build/resources/patterns/vscode/package.pattern
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% set uiTheme = 'vs' %}
{% set uiTheme = theme.type == 'dark' ? 'vs-dark' : uiTheme %}
{% set uiTheme = theme.dir == 'contrast' ? 'hc-black' : uiTheme %}
{
"name": "{{ theme.slug }}",
"version": "1.0.0",
"displayName": "{{ theme.name }} Theme",
"description": "{{ theme.name }} theme by {{ theme.author }}",
"publisher": "Dayle Rees",
"repository": "https://github.com/daylerees/colour-schemes",
"license": "MIT",
"engines": {
"vscode": "^1.13.0"
},
"categories": [
"Themes"
],
"contributes": {
"themes": [
{
"label": "{{ theme.name }}",
"uiTheme": "{{ uiTheme }}",
"path": "./{{ theme.slug }}.json"
}
]
}
}
19 changes: 19 additions & 0 deletions build/resources/patterns/vscode/vscode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "Visual Studio Code Colour Scheme",
"directory": "vscode",

"templates": [
{
"file": "package.pattern",
"name": "daylerees.theme.%theme.slug%/package",
"directory": "",
"extension": ".json"
},
{
"file": "vscode.pattern",
"name": "daylerees.theme.%theme.slug%/%theme.slug%",
"directory": "",
"extension": ".json"
}
]
}
Loading

0 comments on commit 613662b

Please sign in to comment.