Edit

IconHelpers.FromRelativePath(String) Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

This method creates an IconInfo object from a relative path. This is useful for loading icons that have different appearances based on the current theme.

Parameters

path String

The relative path to the icon. This path should point to an image file can be used for both light and dark themes.

Returns

An IconInfo object that contains the light and dark mode icons.