-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce IconConverter #7830
Introduce IconConverter #7830
Conversation
Topics for Discussion
|
This is likely the difference between an Icon and an IconSource. I have no idea why there's two. |
technically IconPathConverter should live in TSE, but we can't have TerminalApp depending on it from there :| |
@@ -168,7 +169,7 @@ HRESULT Jumplist::UpdateJumplist(const CascadiaSettings& settings) noexcept | |||
|
|||
// Create the shell link object for the profile | |||
winrt::com_ptr<IShellLinkW> shLink; | |||
const auto normalizedIconPath{ _normalizeIconPath(profile.ExpandedIconPath()) }; | |||
const auto normalizedIconPath{ _normalizeIconPath(profile.IconPath()) }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be hard to get emoji working w./
Oh, I see. No. Emoji will never work in the jumplist. Sorry. |
This comment has been minimized.
This comment has been minimized.
022c018
to
09b184e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this is so very much better than it used to be. I suppose this counts as a nit, so
Verified schema now shows icon as an allowable property in command (bonus points!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well ;P
## 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 microsoft#7667 ## PR Checklist * [X] Closes microsoft#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.
🎉 Handy links: |
Summary of the Pull Request
Introduce the
IconPathConverter
toTerminalApp
.Command
andProfile
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 theIconPathConverter
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
Validation Steps Performed
Deploy succeeded.