Forge
csharp4405de34
1using Avalonia.Media;
2
3namespace CascadeIDE.Services;
4
5/// <summary>
6/// Семантические цвета Editor HUD: squiggles, MFD/Problems — один sRGB-ряд (editor-forward-ui-cleanup).
7/// Ключи в <c>App.axaml</c> совпадают с <see cref="EditorHudSeverityKeys"/>; тулбар-красный — отдельно (<c>CascadeTheme.ToolbarErrorForeground</c>).
8/// </summary>
9public static class EditorHudDiagnosticsChroma
10{
11 public static Color Error { get; } = Color.FromRgb(178, 92, 98);
12
13 public static Color Warning { get; } = Color.FromRgb(168, 138, 72);
14
15 public static Color Info { get; } = Color.FromRgb(96, 130, 150);
16
17 public static Color InlayLabel { get; } = Color.FromRgb(122, 132, 148);
18
19 public static IBrush InlayLabelBrush { get; } = new SolidColorBrush(InlayLabel);
20}
21
22/// <summary>Ключи <c>App.axaml</c> (DynamicResource в MFD).</summary>
23public static class EditorHudSeverityKeys
24{
25 public const string Error = "EditorHud.SeverityError";
26 public const string Warning = "EditorHud.SeverityWarning";
27 public const string Info = "EditorHud.SeverityInfo";
28}
29
View only · write via MCP/CIDE