Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
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.
Constructors
| 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. |
Properties
| 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. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer