Skip to content

Commit

Permalink
Use the correct uiTheme for contrast themes in vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
danvirsen committed Jul 7, 2017
1 parent 18c340d commit 1fca02a
Show file tree
Hide file tree
Showing 31 changed files with 34 additions and 31 deletions.
5 changes: 4 additions & 1 deletion build/resources/patterns/vscode/package.pattern
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{% 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",
Expand All @@ -16,7 +19,7 @@
"themes": [
{
"label": "{{ theme.name }}",
"uiTheme": "vs{{ theme.type == 'dark' ? '-dark' : '' }}",
"uiTheme": "{{ uiTheme }}",
"path": "./{{ theme.slug }}.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Carbonight Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./carbonight-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Darkside Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./darkside-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Earthsong Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./earthsong-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "FreshCut Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./freshcut-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Frontier Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./frontier-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Gloom Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./gloom-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Glowfish Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./glowfish-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Goldfish Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./goldfish-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Grunge Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./grunge-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Halflife Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./halflife-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Hyrule Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./hyrule-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Iceberg Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./iceberg-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Juicy Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./juicy-contrast.json"
}
]
Expand Down
2 changes: 1 addition & 1 deletion vscode/contrast/daylerees.theme.keen-contrast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Keen Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./keen-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Laravel Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./laravel-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Lavender Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./lavender-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Mellow Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./mellow-contrast.json"
}
]
Expand Down
2 changes: 1 addition & 1 deletion vscode/contrast/daylerees.theme.mud-contrast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Mud Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./mud-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Patriot Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./patriot-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Peacock Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./peacock-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Potpourri Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./potpourri-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Revelation Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./revelation-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Slime Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./slime-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Snappy Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./snappy-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Solarflare Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./solarflare-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Sourlick Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./sourlick-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Stark Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./stark-contrast.json"
}
]
Expand Down
2 changes: 1 addition & 1 deletion vscode/contrast/daylerees.theme.tron-contrast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Tron Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./tron-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Turnip Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./turnip-contrast.json"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"themes": [
{
"label": "Zacks Contrast",
"uiTheme": "vs-dark",
"uiTheme": "hc-black",
"path": "./zacks-contrast.json"
}
]
Expand Down

0 comments on commit 1fca02a

Please sign in to comment.