3 instantiations of TrayPanelPalette
aspire-tray (3)
src\Aspire.Tray\Common\TrayPanelPalette.cs (3)
110
public static TrayPanelPalette Light { get; } =
new
(
139
public static TrayPanelPalette Dark { get; } =
new
(
190
PanelColor grayText) =>
new
(
32 references to TrayPanelPalette
aspire-tray (32)
src\Aspire.Tray\Common\TrayPanel.cs (17)
73
private
TrayPanelPalette
_palette;
95
public TrayPanel(TrayViewState state,
TrayPanelPalette
palette)
103
public
TrayPanelPalette
Palette
744
var
palette = _palette;
1071
private void AddHeader(List<PanelCommand> commands, TrayViewState state,
TrayPanelPalette
palette)
1089
private void AddNotice(List<PanelCommand> commands, string notice, bool singleLine, double height,
TrayPanelPalette
palette)
1106
private void AddEmptyState(List<PanelCommand> commands, DiscoveryState discovery, double top,
TrayPanelPalette
palette)
1133
TrayViewState state,
TrayPanelPalette
palette)
1171
double top, bool live, bool showPid,
TrayPanelPalette
palette)
1289
double top, double height,
TrayPanelPalette
palette)
1361
double top,
TrayPanelPalette
palette)
1414
private void AddSettingsHeader(List<PanelCommand> commands, List<PanelHitTarget> targets,
TrayPanelPalette
palette)
1428
double top,
TrayPanelPalette
palette)
1454
private void AddAbout(List<PanelCommand> commands, PanelSettings settings, double top,
TrayPanelPalette
palette)
1473
private void AddFooter(List<PanelCommand> commands, List<PanelHitTarget> targets, PanelRect footer,
TrayPanelPalette
palette)
1501
private void AddInteractionFill(List<PanelCommand> commands, PanelTargetKey key, PanelRect bounds,
TrayPanelPalette
palette, bool includeFocus)
1584
internal static (string Text, PanelColor Dot) GetHeaderStatus(TrayViewState state,
TrayPanelPalette
palette)
src\Aspire.Tray\Common\TrayPanelGlyphs.cs (2)
52
public static void AddStatus(List<PanelCommand> commands, PanelStatusGlyph glyph, PanelRect bounds,
TrayPanelPalette
palette)
204
public static void AddToggle(List<PanelCommand> commands, bool on, bool enabled, PanelRect bounds,
TrayPanelPalette
palette)
src\Aspire.Tray\Common\TrayPanelPalette.cs (4)
110
public static
TrayPanelPalette
Light { get; } = new(
139
public static
TrayPanelPalette
Dark { get; } = new(
172
public
TrayPanelPalette
WithIncreasedContrast() => this with
189
public static
TrayPanelPalette
FromSystemColors(PanelColor window, PanelColor windowText, PanelColor highlight,
TrayApplication.NativeSmoke.cs (3)
56
private static
TrayPanelPalette
? s_previewPalette;
75
"light" =>
TrayPanelPalette
.Light,
76
"dark" =>
TrayPanelPalette
.Dark,
TrayApplication.Panel.cs (6)
389
private static
TrayPanelPalette
GetPanelPalette()
400
return
TrayPanelPalette
.FromSystemColors(SystemColor(5), SystemColor(8), SystemColor(13), SystemColor(17));
402
return IsLightAppTheme() ?
TrayPanelPalette
.Light :
TrayPanelPalette
.Dark;
469
var
palette = _panel.Palette;
655
private void DrawPanelText(nint dc, TextCommand text,
TrayPanelPalette
palette)