Skip to content

Commit 7b1677e

Browse files
authored
Minor reorganization of theme assets (#4149)
1 parent adead7f commit 7b1677e

File tree

9 files changed

+12
-7
lines changed

9 files changed

+12
-7
lines changed

Themes/.vscodeignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# ignore vscode settings for extension development
2+
.vscode/**
3+
4+
# ignore package lock
5+
package-lock.json

Themes/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# C/C++ Extension UI Themes
22

3-
[Semantic colorization was added to the C/C++ Extension 0.24.0]( https://devblogs.microsoft.com/cppblog/visual-studio-code-c-c-extension-july-2019-update/). By default, colorization in VS Code is syntactic/lexical and leverages TextMate grammar to associate named 'scopes' with syntactic elements. Themes and settings can be used to apply the colors associated with those scopes. Our implementation of semantic colorization leverages the same system of associating colors with named scopes. But, some tokens that can be colored by semantic colorization in C/C++ do not have existing analogs in VS Code's TextMate grammar. So, new named scopes are required. Information about these new scopes can be found [here](https://code.visualstudio.com/docs/cpp/colorization-cpp). Because these scopes are new, existing themes do not include colors for them either.
3+
[Semantic colorization was added to the C/C++ Extension in version 0.24.0](https://devblogs.microsoft.com/cppblog/visual-studio-code-c-c-extension-july-2019-update/). By default, colorization in VS Code is syntactic/lexical and leverages TextMate grammar to associate named 'scopes' with syntactic elements. Themes and settings can be used to apply the colors associated with those scopes. Our implementation of semantic colorization leverages the same system of associating colors with named scopes. But, some tokens that can be colored by semantic colorization in C/C++ do not have existing analogs in VS Code's TextMate grammar. So, new named scopes are required. Information about these new scopes can be found [here](https://code.visualstudio.com/docs/cpp/colorization-cpp). Because these scopes are new, existing themes do not include colors for them either.
44

55
We created C/C++ Extension UI Themes to closely match Visual Studio themes, and include colors for many of the new scopes.
66

77
## Example
88

99
Light Theme
1010

11-
![Light Theme example](light.png)
11+
![Light Theme example](Themes/assets/light.png)
1212

1313
Dark Theme
1414

15-
![Dark Theme example](dark.png)
15+
![Dark Theme example](Themes/assets/dark.png)
1616

1717
## Contributing
1818

File renamed without changes.
File renamed without changes.
File renamed without changes.

Themes/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Themes/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "1.0.0",
66
"publisher": "ms-vscode",
77
"preview": false,
8-
"icon": "LanguageCCPP_color_128x.png",
8+
"icon": "assets/LanguageCCPP_color_128x.png",
99
"readme": "README.md",
1010
"author": {
1111
"name": "Microsoft Corporation"
@@ -40,13 +40,13 @@
4040
"id": "Visual Studio Dark - C++",
4141
"label": "Dark (Visual Studio - C/C++)",
4242
"uiTheme": "vs-dark",
43-
"path": "./cpptools_dark_vs.json"
43+
"path": "./themes/cpptools_dark_vs.json"
4444
},
4545
{
4646
"id": "Visual Studio Light - C++",
4747
"label": "Light (Visual Studio - C/C++)",
4848
"uiTheme": "vs",
49-
"path": "./cpptools_light_vs.json"
49+
"path": "./themes/cpptools_light_vs.json"
5050
}
5151
]
5252
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)