-
Notifications
You must be signed in to change notification settings - Fork 2
/
Colors.h
78 lines (73 loc) · 3.08 KB
/
Colors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//
// SolarizedVS - A Solarized Color Theme for Visual Studio
// Copyright (C) 2013 Ian Prest
//
// 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:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// 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
// 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.
//
//
// The Solarized colors themselves, by Ethan Schoonover
// http://ethanschoonover.com/solarized
//
#define color_base03 FF002B36
#define color_base02 FF073642
#define color_base01 FF586E75
#define color_base00 FF657B83
#define color_base0 FF839496
#define color_base1 FF93A1A1
#define color_base2 FFEEE8D5
#define color_base3 FFFDF6E3
#define color_yellow FFB58900
#define color_orange FFCB4B16
#define color_red FFDC322F
#define color_magenta FFD33682
#define color_violet FF6C71C4
#define color_blue FF268BD2
#define color_cyan FF2AA198
#define color_green FF859900
//
// Values to represent special VS color definitions
//
#define auto color,auto // "Automatic"
#define default color,default // "Default"
#define void color,void // not-specified
#define unknown_color FFFF00FF // used for items we don't yet understand
//
// Helper macros
//
#define _FOREGROUND4_(x) <Foreground Type="CT_RAW" Source=#x />
#define _FOREGROUND4_auto(x) <Foreground Type="CT_AUTOMATIC" Source="00000000" />
#define _FOREGROUND4_void(x)
#define _FOREGROUND4_default(x)
#define _FOREGROUND3(x,y,...) _FOREGROUND4_##y(x)
#define _FOREGROUND2(xy) _FOREGROUND3 xy
#define _FOREGROUND1(xy) _FOREGROUND2((xy,))
#define _FOREGROUND(xy) _FOREGROUND1(xy)
#define _BACKGROUND4_(x) <Background Type="CT_RAW" Source=#x />
#define _BACKGROUND4_auto(x) <Background Type="CT_AUTOMATIC" Source="00000000" />
#define _BACKGROUND4_default(x) //<Background Type="CT_DEFAULT" Source="00000000" />
#define _BACKGROUND4_void(x)
#define _BACKGROUND3(x,y,...) _BACKGROUND4_##y(x)
#define _BACKGROUND2(xy) _BACKGROUND3 xy
#define _BACKGROUND1(xy) _BACKGROUND2((xy,))
#define _BACKGROUND(xy) _BACKGROUND1(xy)
#define COLOR(theName, theForeground, theBackground) \
<Color Name=theName>_BACKGROUND(theBackground)_FOREGROUND(theForeground)</Color>