mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +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:
@@ -1,28 +0,0 @@
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using Microsoft.CommandPalette.Extensions.Toolkit;
|
||||
|
||||
namespace Microsoft.CmdPal.Ext.System.Helpers;
|
||||
|
||||
public static partial class Icons
|
||||
{
|
||||
public static IconInfo FirmwareSettingsIcon { get; } = new IconInfo("\uE950");
|
||||
|
||||
public static IconInfo LockIcon { get; } = new IconInfo("\uE72E");
|
||||
|
||||
public static IconInfo LogoffIcon { get; } = new IconInfo("\uF3B1");
|
||||
|
||||
public static IconInfo NetworkAdapterIcon { get; } = new IconInfo("\uEDA3");
|
||||
|
||||
public static IconInfo RecycleBinIcon { get; } = new IconInfo("\uE74D");
|
||||
|
||||
public static IconInfo RestartIcon { get; } = new IconInfo("\uE777");
|
||||
|
||||
public static IconInfo RestartShellIcon { get; } = new IconInfo("\uEC50");
|
||||
|
||||
public static IconInfo ShutdownIcon { get; } = new IconInfo("\uE7E8");
|
||||
|
||||
public static IconInfo SleepIcon { get; } = new IconInfo("\uE708");
|
||||
}
|
||||
28
src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.System/Icons.cs
Normal file
28
src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.System/Icons.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using Microsoft.CommandPalette.Extensions.Toolkit;
|
||||
|
||||
namespace Microsoft.CmdPal.Ext.System;
|
||||
|
||||
internal sealed class Icons
|
||||
{
|
||||
internal static IconInfo FirmwareSettingsIcon { get; } = new IconInfo("\uE950");
|
||||
|
||||
internal static IconInfo LockIcon { get; } = new IconInfo("\uE72E");
|
||||
|
||||
internal static IconInfo LogoffIcon { get; } = new IconInfo("\uF3B1");
|
||||
|
||||
internal static IconInfo NetworkAdapterIcon { get; } = new IconInfo("\uEDA3");
|
||||
|
||||
internal static IconInfo RecycleBinIcon { get; } = new IconInfo("\uE74D");
|
||||
|
||||
internal static IconInfo RestartIcon { get; } = new IconInfo("\uE777");
|
||||
|
||||
internal static IconInfo RestartShellIcon { get; } = new IconInfo("\uEC50");
|
||||
|
||||
internal static IconInfo ShutdownIcon { get; } = new IconInfo("\uE7E8");
|
||||
|
||||
internal static IconInfo SleepIcon { get; } = new IconInfo("\uE708");
|
||||
}
|
||||
Reference in New Issue
Block a user