## Summary of the Pull Request Introduce the `IconPathConverter` to `TerminalApp`. `Command` and `Profile` now both return the unexpanded icon path. `IconPathConverter` is responsible for expanding the icon path and retrieving the appropriate icon source. This also removes `Profile`'s expanded icon path and uses the `IconPathConverter` when necessary. This allows users to set profile icons to emoji as well. However, emoji do not appear in the jumplist. ## References Based on #7667 ## PR Checklist * [X] Closes #7784 * [x] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [x] Schema updated. ## Validation Steps Performed Deploy succeeded.
30 lines
1,021 B
Plaintext
30 lines
1,021 B
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
import "KeyMapping.idl";
|
|
import "Profile.idl";
|
|
import "ColorScheme.idl";
|
|
import "TerminalWarnings.idl";
|
|
|
|
namespace Microsoft.Terminal.Settings.Model
|
|
{
|
|
[default_interface] runtimeclass Command : Windows.UI.Xaml.Data.INotifyPropertyChanged
|
|
{
|
|
Command();
|
|
|
|
String Name;
|
|
ActionAndArgs Action;
|
|
String KeyChordText;
|
|
|
|
String Icon;
|
|
|
|
Boolean HasNestedCommands { get; };
|
|
Windows.Foundation.Collections.IMapView<String, Command> NestedCommands { get; };
|
|
|
|
static void ExpandCommands(Windows.Foundation.Collections.IMap<String, Command> commands,
|
|
Windows.Foundation.Collections.IVectorView<Profile> profiles,
|
|
Windows.Foundation.Collections.IVectorView<ColorScheme> schemes,
|
|
Windows.Foundation.Collections.IVector<SettingsLoadWarnings> warnings);
|
|
}
|
|
}
|