mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Standardizing built-in extension icon handling (#40606)
Just standardizing built-in extensions to use a `internal sealed class Icons` for all their non-dynamic icons. Looks like a LOT of changes, but it's icons all the way down.
This commit is contained in:
@@ -26,17 +26,17 @@ internal sealed partial class ExecuteItem : InvokableCommand
|
||||
if (type == RunAsType.Administrator)
|
||||
{
|
||||
Name = Properties.Resources.cmd_run_as_administrator;
|
||||
Icon = new IconInfo("\xE7EF"); // Admin Icon
|
||||
Icon = Icons.AdminIcon;
|
||||
}
|
||||
else if (type == RunAsType.OtherUser)
|
||||
{
|
||||
Name = Properties.Resources.cmd_run_as_user;
|
||||
Icon = new IconInfo("\xE7EE"); // User Icon
|
||||
Icon = Icons.UserIcon;
|
||||
}
|
||||
else
|
||||
{
|
||||
Name = Properties.Resources.generic_run_command;
|
||||
Icon = new IconInfo("\uE751"); // Return Key Icon
|
||||
Icon = Icons.ReturnIcon;
|
||||
}
|
||||
|
||||
Cmd = cmd;
|
||||
|
||||
Reference in New Issue
Block a user