| title |
IconInfo Class |
| description |
The IconInfo class is used to define icons for commands in the Command Palette. |
| ms.date |
2/27/2025 |
| ms.topic |
reference |
| no-loc |
PowerToys |
Windows |
Insider |
|
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Implements IIconInfo
The IconInfo class is used to define icons for commands in the Command Palette. It allows you to specify different icons for light and dark modes, ensuring that your icons are visually appealing and consistent with the user's theme preferences.
| Constructor |
Description |
| IconInfo(IconData, IconData) |
Initializes the icon with a dark mode and a light mode version. |
| IconInfo(String) |
Initializes the icon with one version of the icon, used for both light and dark modes. |
| Property |
Type |
Description |
| Dark |
IconData |
Gets or sets the dark mode version of the icon. |
| Light |
IconData |
Gets or sets the light mode version of the icon. |