Skip to content

Commit e2e66c8

Browse files
committed
Use file-scoped namespace for ColorKind
1 parent c712ea4 commit e2e66c8

File tree

2 files changed

+219
-225
lines changed

2 files changed

+219
-225
lines changed
Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
3-
// See the LICENSE file in the project root for more information.
43

5-
namespace System.Windows.Media
4+
namespace System.Windows.Media;
5+
6+
/// <summary>
7+
/// Encapsulates color kinds as categorized via <see cref="KnownColors.MatchColor(ReadOnlySpan{char})"/>
8+
/// </summary>
9+
internal enum ColorKind
610
{
711
/// <summary>
8-
/// Encapsulates color kinds as categorized via <see cref="KnownColors.MatchColor(ReadOnlySpan{char})"/>
12+
/// Unused but it is the default value.
13+
/// </summary>
14+
Unknown = 0,
15+
/// <summary>
16+
/// Just a standard #HEXCOLOR format.
17+
/// </summary>
18+
NumericColor = 1,
19+
/// <summary>
20+
/// Color prefixed with "ContextColor ".
21+
/// </summary>
22+
ContextColor = 2,
23+
/// <summary>
24+
/// Color prefixed with "sc#".
25+
/// </summary>
26+
ScRgbColor = 3,
27+
/// <summary>
28+
/// Fallback if none of the previous ones matched.
929
/// </summary>
10-
internal enum ColorKind
11-
{
12-
/// <summary>
13-
/// Unused but it is the default value.
14-
/// </summary>
15-
Unknown = 0,
16-
/// <summary>
17-
/// Just a standard #HEXCOLOR format.
18-
/// </summary>
19-
NumericColor = 1,
20-
/// <summary>
21-
/// Color prefixed with "ContextColor ".
22-
/// </summary>
23-
ContextColor = 2,
24-
/// <summary>
25-
/// Color prefixed with "sc#".
26-
/// </summary>
27-
ScRgbColor = 3,
28-
/// <summary>
29-
/// Fallback if none of the previous ones matched.
30-
/// </summary>
31-
KnownColor = 4
32-
}
30+
KnownColor = 4
3331
}

0 commit comments

Comments
 (0)