1 write to _panel
aspire-tray (1)
TrayApplication.Panel.cs (1)
150
_panel
= new TrayPanel(controller.State, GetPanelPalette()) { FileManagerName = "File Explorer", QuitVerb = "Quit" };
55 references to _panel
aspire-tray (55)
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 (28)
70
_panel
!.OpenInApplications = _installedApplications.Select(application => application.Title).ToArray();
71
_panel
.Update(controller.State);
72
_panel
.Reset();
75
_panel
.FocusFirst();
177
_panel
!.Palette = GetPanelPalette();
185
_panel
!.MaxHeight = Math.Min(TrayPanel.DefaultMaxHeight, (work.Bottom - work.Top - 2 * margin) / scale);
187
var height = (int)Math.Round(
_panel
.Scene.Height * scale);
196
_panel
.MaxHeight = Math.Min(
_panel
.MaxHeight,
198
height = (int)Math.Round(
_panel
.Scene.Height * scale);
266
var tooltips =
_panel
!.Scene.Targets.Where(target => target.Tooltip is not null && !target.HitBounds.IsEmpty)
316
if (!_panelVisible ||
_panel
is null || (ReferenceEquals(state,
_panel
.State) && !_panelPaletteDirty))
320
if (
_panel
.Update(state) || _panelPaletteDirty)
331
if (_panelPaletteDirty || Math.Abs(rect.Bottom - rect.Top - Math.Round(
_panel
!.Scene.Height * PanelScale)) > 0.5)
386
ApplyPanelResponse(
_panel
!.ShowSettings(PanelSettings.Read(startupSettings, _interactiveSmoke, LogStartupFailure)));
389
ApplyPanelResponse(
_panel
!.UpdateSettings(
448
if (dc == 0 ||
_panel
is null)
484
var scene =
_panel
!.Scene;
485
var palette =
_panel
.Palette;
863
if (
_panel
is null)
887
ApplyPanelResponse(
_panel
.PointerMoved(x, y));
891
ApplyPanelResponse(
_panel
.PointerLeft());
895
ApplyPanelResponse(
_panel
.PointerDown(x, y));
899
ApplyPanelResponse(
_panel
.PointerUp(x, y));
904
ApplyPanelResponse(
_panel
.Scroll(delta / 120.0 * WheelStep));
908
if (!
_panel
.IsSettingsOpen)
928
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)