Skip to content

Commit 5b39d15

Browse files
[CmdPal]Fix Calc and Command extension fallback command icons (#38146)
1 parent 5e88d47 commit 5b39d15

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.Calc/CalculatorCommandProvider.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public override ICommandResult Invoke()
141141
internal sealed partial class FallbackCalculatorItem : FallbackCommandItem
142142
{
143143
private readonly CopyTextCommand _copyCommand = new(string.Empty);
144+
private static readonly IconInfo _cachedIcon = IconHelpers.FromRelativePath("Assets\\Calculator.svg");
144145

145146
public FallbackCalculatorItem()
146147
: base(new NoOpCommand(), Resources.calculator_title)
@@ -149,7 +150,7 @@ public FallbackCalculatorItem()
149150
_copyCommand.Name = string.Empty;
150151
Title = string.Empty;
151152
Subtitle = Resources.calculator_placeholder_text;
152-
Icon = new IconInfo("\ue8ef"); // Calculator
153+
Icon = _cachedIcon;
153154
}
154155

155156
public override void UpdateQuery(string query)

src/modules/cmdpal/exts/Microsoft.CmdPal.Ext.Shell/FallbackExecuteItem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public FallbackExecuteItem(SettingsManager settings)
2020
Title = string.Empty;
2121
_executeItem.Name = string.Empty;
2222
Subtitle = Properties.Resources.generic_run_command;
23-
Icon = new IconInfo("\uE756");
23+
Icon = Icons.RunV2; // Defined in Icons.cs and contains the execute command icon.
2424
}
2525

2626
public override void UpdateQuery(string query)

0 commit comments

Comments
 (0)