Edit

Share via


IconInfo Class

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.