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
This method creates an IconInfo object from two relative paths, one for light mode and one for dark mode. This is useful for loading icons that have different appearances based on the current theme.
Parameters
lightIcon String
The relative path to the icon for light mode. This path should point to an image file that represents the icon in a light theme.
darkIcon String
The relative path to the icon for dark mode. This path should point to an image file that represents the icon in a dark theme.
Returns
An IconInfo object that contains the light and dark mode icons.
Windows developer