Skip to content

Commit a17cb42

Browse files
authored
Add readme and license to Themes directory (#4111)
1 parent 3251ee5 commit a17cb42

File tree

5 files changed

+49
-1
lines changed

5 files changed

+49
-1
lines changed

Themes/LICENSE.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
------------------------------------------- START OF LICENSE -----------------------------------------
2+
3+
vscode-cpptools
4+
5+
Copyright (c) Microsoft Corporation
6+
7+
All rights reserved.
8+
9+
MIT License
10+
11+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
16+
17+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18+
19+
----------------------------------------------- END OF LICENSE ------------------------------------------

Themes/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# C/C++ Extension UI Themes
2+
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 anologs 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.
4+
5+
We created C/C++ Extension UI Themes to closely match Visual Studio themes, and include colors for many of the new scopes.
6+
7+
## Example
8+
9+
Light Theme
10+
11+
![Light Theme example](light.png)
12+
13+
Dark Theme
14+
15+
![Dark Theme example](dark.png)
16+
17+
## Contributing
18+
19+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
20+
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
21+
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
22+
23+
When you submit a pull request, a CLA bot will automatically determine whether you need to provide
24+
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
25+
provided by the bot. You will only need to do this once across all repos using our CLA.
26+
27+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
28+
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
29+
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

Themes/cpptools_dark_vs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
{
368368
"scope": "entity.name",
369369
"settings": {
370-
"foreground": "#FFFFFF"
370+
"foreground": "#C8C8C8"
371371
}
372372
},
373373
{

Themes/dark.png

30.1 KB
Loading

Themes/light.png

29.3 KB
Loading

0 commit comments

Comments
 (0)