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)
73private TrayPanelPalette _palette; 95public TrayPanel(TrayViewState state, TrayPanelPalette palette) 103public TrayPanelPalette Palette 744var palette = _palette; 1071private void AddHeader(List<PanelCommand> commands, TrayViewState state, TrayPanelPalette palette) 1089private void AddNotice(List<PanelCommand> commands, string notice, bool singleLine, double height, TrayPanelPalette palette) 1106private void AddEmptyState(List<PanelCommand> commands, DiscoveryState discovery, double top, TrayPanelPalette palette) 1133TrayViewState state, TrayPanelPalette palette) 1171double top, bool live, bool showPid, TrayPanelPalette palette) 1289double top, double height, TrayPanelPalette palette) 1361double top, TrayPanelPalette palette) 1414private void AddSettingsHeader(List<PanelCommand> commands, List<PanelHitTarget> targets, TrayPanelPalette palette) 1428double top, TrayPanelPalette palette) 1454private void AddAbout(List<PanelCommand> commands, PanelSettings settings, double top, TrayPanelPalette palette) 1473private void AddFooter(List<PanelCommand> commands, List<PanelHitTarget> targets, PanelRect footer, TrayPanelPalette palette) 1501private void AddInteractionFill(List<PanelCommand> commands, PanelTargetKey key, PanelRect bounds, TrayPanelPalette palette, bool includeFocus) 1584internal 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)
389private static TrayPanelPalette GetPanelPalette() 400return TrayPanelPalette.FromSystemColors(SystemColor(5), SystemColor(8), SystemColor(13), SystemColor(17)); 402return IsLightAppTheme() ? TrayPanelPalette.Light : TrayPanelPalette.Dark; 469var palette = _panel.Palette; 655private void DrawPanelText(nint dc, TextCommand text, TrayPanelPalette palette)