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)
78
private
TrayPanelPalette
_palette;
101
public TrayPanel(TrayViewState state,
TrayPanelPalette
palette)
109
public
TrayPanelPalette
Palette
827
var
palette = _palette;
1174
private void AddHeader(List<PanelCommand> commands, TrayViewState state,
TrayPanelPalette
palette)
1197
TrayPanelPalette
palette,
1218
private void AddEmptyState(List<PanelCommand> commands, DiscoveryState discovery, double top,
TrayPanelPalette
palette)
1245
TrayViewState state,
TrayPanelPalette
palette)
1283
double top, bool live, bool showPid,
TrayPanelPalette
palette)
1402
double top, double height,
TrayPanelPalette
palette)
1474
double top,
TrayPanelPalette
palette)
1527
private void AddSettingsHeader(List<PanelCommand> commands, List<PanelHitTarget> targets,
TrayPanelPalette
palette)
1541
double top,
TrayPanelPalette
palette)
1567
private void AddAbout(List<PanelCommand> commands, PanelSettings settings, double top,
TrayPanelPalette
palette)
1586
private void AddFooter(List<PanelCommand> commands, List<PanelHitTarget> targets, PanelRect footer,
TrayPanelPalette
palette)
1611
private void AddInteractionFill(List<PanelCommand> commands, PanelTargetKey key, PanelRect bounds,
TrayPanelPalette
palette, bool includeFocus)
1695
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)
405
private static
TrayPanelPalette
GetPanelPalette()
416
return
TrayPanelPalette
.FromSystemColors(SystemColor(5), SystemColor(8), SystemColor(13), SystemColor(17));
418
return IsLightAppTheme() ?
TrayPanelPalette
.Light :
TrayPanelPalette
.Dark;
485
var
palette = _panel.Palette;
671
private void DrawPanelText(nint dc, TextCommand text,
TrayPanelPalette
palette)