mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 05:06:36 +02:00
[CmdPal]Fix Calc and Command extension fallback command icons (#38146)
This commit is contained in:
@@ -141,6 +141,7 @@ public sealed partial class SaveCommand : InvokableCommand
|
|||||||
internal sealed partial class FallbackCalculatorItem : FallbackCommandItem
|
internal sealed partial class FallbackCalculatorItem : FallbackCommandItem
|
||||||
{
|
{
|
||||||
private readonly CopyTextCommand _copyCommand = new(string.Empty);
|
private readonly CopyTextCommand _copyCommand = new(string.Empty);
|
||||||
|
private static readonly IconInfo _cachedIcon = IconHelpers.FromRelativePath("Assets\\Calculator.svg");
|
||||||
|
|
||||||
public FallbackCalculatorItem()
|
public FallbackCalculatorItem()
|
||||||
: base(new NoOpCommand(), Resources.calculator_title)
|
: base(new NoOpCommand(), Resources.calculator_title)
|
||||||
@@ -149,7 +150,7 @@ internal sealed partial class FallbackCalculatorItem : FallbackCommandItem
|
|||||||
_copyCommand.Name = string.Empty;
|
_copyCommand.Name = string.Empty;
|
||||||
Title = string.Empty;
|
Title = string.Empty;
|
||||||
Subtitle = Resources.calculator_placeholder_text;
|
Subtitle = Resources.calculator_placeholder_text;
|
||||||
Icon = new IconInfo("\ue8ef"); // Calculator
|
Icon = _cachedIcon;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void UpdateQuery(string query)
|
public override void UpdateQuery(string query)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ internal sealed partial class FallbackExecuteItem : FallbackCommandItem
|
|||||||
Title = string.Empty;
|
Title = string.Empty;
|
||||||
_executeItem.Name = string.Empty;
|
_executeItem.Name = string.Empty;
|
||||||
Subtitle = Properties.Resources.generic_run_command;
|
Subtitle = Properties.Resources.generic_run_command;
|
||||||
Icon = new IconInfo("\uE756");
|
Icon = Icons.RunV2; // Defined in Icons.cs and contains the execute command icon.
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void UpdateQuery(string query)
|
public override void UpdateQuery(string query)
|
||||||
|
|||||||
Reference in New Issue
Block a user