/ src / modules / cmdpal / ext / Microsoft.CmdPal.Ext.PowerToys / Modules / ImageResizerModuleCommandProvider.cs
ImageResizerModuleCommandProvider.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System.Collections.Generic; 6 using Microsoft.CommandPalette.Extensions.Toolkit; 7 using PowerToysExtension.Commands; 8 using PowerToysExtension.Helpers; 9 using PowerToysExtension.Properties; 10 using static Common.UI.SettingsDeepLink; 11 12 namespace PowerToysExtension.Modules; 13 14 internal sealed class ImageResizerModuleCommandProvider : ModuleCommandProvider 15 { 16 public override IEnumerable<ListItem> BuildCommands() 17 { 18 var title = SettingsWindow.ImageResizer.ModuleDisplayName(); 19 var icon = SettingsWindow.ImageResizer.ModuleIcon(); 20 21 yield return new ListItem(new OpenInSettingsCommand(SettingsWindow.ImageResizer, title)) 22 { 23 Title = title, 24 Subtitle = Resources.ImageResizer_Settings_Subtitle, 25 Icon = icon, 26 }; 27 } 28 }