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.
IconInfo(IconData, IconData) Constructor
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Initializes a new instance of the IconInfo class with a dark mode and a light mode version of the icon.
public IconInfo(IconData light, IconData dark)
{
Light = light;
Dark = dark;
}
Parameters
dark IconData
The dark mode version of the icon. This parameter is used to specify the icon that will be displayed when the application is in dark mode.
light IconData
The light mode version of the icon. This parameter is used to specify the icon that will be displayed when the application is in light mode.
IconInfo(String) Constructor
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Initializes a new instance of the IconInfo class with one version of the icon, used for both light and dark modes.
public IconInfo(string icon)
{
Dark = Light = new(icon);
}
Parameters
icon String
The icon that will be displayed in both light and dark modes. This parameter is used to specify a single icon that will be used regardless of the application's theme.
Windows developer