3 instantiations of TrayPanelPalette
aspire-tray (3)
src\Aspire.Tray\Common\TrayPanelPalette.cs (3)
110public static TrayPanelPalette Light { get; } = new( 139public static TrayPanelPalette Dark { get; } = new( 190PanelColor grayText) => new(
32 references to TrayPanelPalette
aspire-tray (32)
src\Aspire.Tray\Common\TrayPanel.cs (17)
78private TrayPanelPalette _palette; 101public TrayPanel(TrayViewState state, TrayPanelPalette palette) 109public TrayPanelPalette Palette 827var palette = _palette; 1174private void AddHeader(List<PanelCommand> commands, TrayViewState state, TrayPanelPalette palette) 1197TrayPanelPalette palette, 1218private void AddEmptyState(List<PanelCommand> commands, DiscoveryState discovery, double top, TrayPanelPalette palette) 1245TrayViewState state, TrayPanelPalette palette) 1283double top, bool live, bool showPid, TrayPanelPalette palette) 1402double top, double height, TrayPanelPalette palette) 1474double top, TrayPanelPalette palette) 1527private void AddSettingsHeader(List<PanelCommand> commands, List<PanelHitTarget> targets, TrayPanelPalette palette) 1541double top, TrayPanelPalette palette) 1567private void AddAbout(List<PanelCommand> commands, PanelSettings settings, double top, TrayPanelPalette palette) 1586private void AddFooter(List<PanelCommand> commands, List<PanelHitTarget> targets, PanelRect footer, TrayPanelPalette palette) 1611private void AddInteractionFill(List<PanelCommand> commands, PanelTargetKey key, PanelRect bounds, TrayPanelPalette palette, bool includeFocus) 1695internal static (string Text, PanelColor Dot) GetHeaderStatus(TrayViewState state, TrayPanelPalette palette)
src\Aspire.Tray\Common\TrayPanelGlyphs.cs (2)
52public static void AddStatus(List<PanelCommand> commands, PanelStatusGlyph glyph, PanelRect bounds, TrayPanelPalette palette) 204public static void AddToggle(List<PanelCommand> commands, bool on, bool enabled, PanelRect bounds, TrayPanelPalette palette)
src\Aspire.Tray\Common\TrayPanelPalette.cs (4)
110public static TrayPanelPalette Light { get; } = new( 139public static TrayPanelPalette Dark { get; } = new( 172public TrayPanelPalette WithIncreasedContrast() => this with 189public static TrayPanelPalette FromSystemColors(PanelColor window, PanelColor windowText, PanelColor highlight,
TrayApplication.NativeSmoke.cs (3)
56private static TrayPanelPalette? s_previewPalette; 75"light" => TrayPanelPalette.Light, 76"dark" => TrayPanelPalette.Dark,
TrayApplication.Panel.cs (6)
405private static TrayPanelPalette GetPanelPalette() 416return TrayPanelPalette.FromSystemColors(SystemColor(5), SystemColor(8), SystemColor(13), SystemColor(17)); 418return IsLightAppTheme() ? TrayPanelPalette.Light : TrayPanelPalette.Dark; 485var palette = _panel.Palette; 671private void DrawPanelText(nint dc, TextCommand text, TrayPanelPalette palette)