Skip to content

Commit 646752c

Browse files
Fixed XML/XAML Dark Theme.
1 parent 67b17ed commit 646752c

1 file changed

Lines changed: 20 additions & 14 deletions

File tree

ColorCode.Core/Styling/StyleDictionary.DefaultDark.cs

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,21 @@ namespace ColorCode.Styling
77
/// </summary>
88
public partial class StyleDictionary
99
{
10-
public const string VSDarkBackground = "#FF1E1E1E";
11-
public const string VSDarkComment = "#FF57A64A";
12-
public const string VSDarkXMLComment = "#FF608B4E";
13-
public const string VSDarkKeyword = "#FF569CD6";
14-
public const string VSDarkGray = "#FF9B9B9B";
15-
public const string VSDarkNumber = "#FFB5CEA8";
16-
public const string VSDarkPlainText = "#FFDADADA";
17-
public const string VSDarkClass = "#FF4EC9B0";
18-
public const string VSDarkString = "#FFD69D85";
10+
private const string VSDarkBackground = "#FF1E1E1E";
11+
private const string VSDarkPlainText = "#FFDADADA";
12+
13+
private const string VSDarkXMLDelimeter = "#FF808080";
14+
private const string VSDarkXMLName = "#FF#E6E6E6";
15+
private const string VSDarkXMLAttribute = "#FF92CAF4";
16+
private const string VSDarkXAMLCData = "#FFC0D088";
17+
private const string VSDarkXMLComment = "#FF608B4E";
18+
19+
private const string VSDarkComment = "#FF57A64A";
20+
private const string VSDarkKeyword = "#FF569CD6";
21+
private const string VSDarkGray = "#FF9B9B9B";
22+
private const string VSDarkNumber = "#FFB5CEA8";
23+
private const string VSDarkClass = "#FF4EC9B0";
24+
private const string VSDarkString = "#FFD69D85";
1925

2026
/// <summary>
2127
/// A theme with Dark Colors.
@@ -109,12 +115,12 @@ public static StyleDictionary DefaultDark
109115
},
110116
new Style(ScopeName.XmlAttribute)
111117
{
112-
Foreground = Red,
118+
Foreground = VSDarkXMLAttribute,
113119
ReferenceName = "xmlAttribute"
114120
},
115121
new Style(ScopeName.XmlAttributeQuotes)
116122
{
117-
Foreground = Black,
123+
Foreground = VSDarkKeyword,
118124
ReferenceName = "xmlAttributeQuotes"
119125
},
120126
new Style(ScopeName.XmlAttributeValue)
@@ -124,7 +130,7 @@ public static StyleDictionary DefaultDark
124130
},
125131
new Style(ScopeName.XmlCDataSection)
126132
{
127-
Foreground = VSDarkGray,
133+
Foreground = VSDarkXAMLCData,
128134
ReferenceName = "xmlCDataSection"
129135
},
130136
new Style(ScopeName.XmlComment)
@@ -134,12 +140,12 @@ public static StyleDictionary DefaultDark
134140
},
135141
new Style(ScopeName.XmlDelimiter)
136142
{
137-
Foreground = VSDarkKeyword,
143+
Foreground = VSDarkXMLDelimeter,
138144
ReferenceName = "xmlDelimiter"
139145
},
140146
new Style(ScopeName.XmlName)
141147
{
142-
Foreground = DullRed,
148+
Foreground = VSDarkXMLName,
143149
ReferenceName = "xmlName"
144150
},
145151
new Style(ScopeName.ClassName)

0 commit comments

Comments
 (0)