1 write to _panel
aspire-tray (1)
TrayApplication.Panel.cs (1)
150
_panel
= new TrayPanel(controller.State, GetPanelPalette()) { FileManagerName = "File Explorer", QuitVerb = "Exit" };
52 references to _panel
aspire-tray (52)
TrayApplication.Actions.cs (2)
134
&&
_panel
is not null)
136
ApplyPanelResponse(
_panel
.ConfirmRemoveMissing(recent));
TrayApplication.NativeSmoke.cs (11)
92
var panel =
_panel
!;
125
TrayPanelSceneJson.Write(export,
_panel
!.Scene, "Windows", Environment.GetEnvironmentVariable("ASPIRE_TRAY_SMOKE_PREVIEW_APPEARANCE") ?? "system",
198
return
_panel
!;
241
=> ApplyPanelResponse(
_panel
!.Invoke(FindPanelTargetForSmoke(kind, host).Key));
255
NativeSmokeHarness.Require(
_panel
!.ActionsRow is null, "Picking an action must close the action list.");
265
var panel =
_panel
!;
329
NativeSmokeHarness.Require(_panelVisible && (
_panel
!.FocusedTarget is not null) == keyboard,
340
NativeSmokeHarness.Require(!
_panel
!.IsSettingsOpen, "Settings opened unexpectedly.");
361
NativeSmokeHarness.Require(
_panel
.IsSettingsOpen, "Ctrl+comma must open the Settings view in the panel.");
363
NativeSmokeHarness.Require(!
_panel
.IsSettingsOpen && _panelVisible, "Escape must leave the Settings view and keep the panel open.");
398
if (
_panel
is { IsSettingsOpen: true })
TrayApplication.Panel.cs (25)
70
_panel
!.OpenInApplications = _installedApplications.Select(application => application.Title).ToArray();
71
_panel
.Update(controller.State);
72
_panel
.Reset();
75
_panel
.FocusFirst();
177
_panel
!.Palette = GetPanelPalette();
183
_panel
!.MaxHeight = Math.Min(TrayPanel.DefaultMaxHeight, (work.Bottom - work.Top - 2 * margin) / scale);
185
var height = (int)Math.Round(
_panel
.Scene.Height * scale);
250
var tooltips =
_panel
!.Scene.Targets.Where(target => target.Tooltip is not null && !target.HitBounds.IsEmpty)
300
if (!_panelVisible ||
_panel
is null || (ReferenceEquals(state,
_panel
.State) && !_panelPaletteDirty))
304
if (
_panel
.Update(state) || _panelPaletteDirty)
315
if (_panelPaletteDirty || Math.Abs(rect.Bottom - rect.Top - Math.Round(
_panel
!.Scene.Height * PanelScale)) > 0.5)
370
ApplyPanelResponse(
_panel
!.ShowSettings(PanelSettings.Read(startupSettings, _interactiveSmoke, LogStartupFailure)));
373
ApplyPanelResponse(
_panel
!.UpdateSettings(
432
if (dc == 0 ||
_panel
is null)
468
var scene =
_panel
!.Scene;
469
var palette =
_panel
.Palette;
847
if (
_panel
is null)
871
ApplyPanelResponse(
_panel
.PointerMoved(x, y));
875
ApplyPanelResponse(
_panel
.PointerLeft());
879
ApplyPanelResponse(
_panel
.PointerDown(x, y));
883
ApplyPanelResponse(
_panel
.PointerUp(x, y));
888
ApplyPanelResponse(
_panel
.Scroll(delta / 120.0 * WheelStep));
892
if (!
_panel
.IsSettingsOpen)
912
ApplyPanelResponse(
_panel
.Key(value));
TrayApplication.PanelAutomation.cs (14)
56
if (
_panel
is null || _automationRoot is null)
60
var scene =
_panel
.Scene;
104
_automationFocus =
_panel
.FocusedTarget;
140
if (
_panel
.FocusedTarget != _automationFocus)
142
_automationFocus =
_panel
.FocusedTarget;
165
=>
_panel
?.FocusedTarget is { } focus && _automationNodes.TryGetValue(PanelAccessibleKey.For(focus), out var node) ? node : null;
169
if (
_panel
is null || !_panelVisible)
202
if (
_panel
is not null && _panelVisible && _automationNodesById.TryGetValue(id, out var node) && node.Element.Target is { } target)
204
ApplyPanelResponse(
_panel
.Invoke(target.Key));
328
private bool IsFocused => Element.Target is { } target && owner.
_panel
?.FocusedTarget == target.Key;
347
if (Removed || owner.
_panel
is null)
419
if (Element.Target is { Enabled: true } target && owner.
_panel
is { } panel && owner._panelVisible)
443
owner.ApplyPanelResponse(owner.
_panel
!.Invoke(Element.Target!.Key));
454
if (Removed || owner.
_panel
is null)