[PR #19591] Add IconPicker to New Tab Menu folders in SUI #31884

Open
opened 2026-01-31 09:50:10 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/19591

State: open
Merged: No


Summary of the Pull Request

This PR pulls out the icon picker used in Profiles_Base.xaml to be its own control. Then it's reused as a way to set an icon on folders in the new tab menu.

As a part of pulling out the icon picker into its own control, some minor code-health polish was added (i.e. lazy loading icon types and built in icons).

The new tab menu didn't have a NavigateToPageArgs, so I took the declaration from #19519 and moved it here. I chose to do that instead of creating a NavigateToNewTabMenuArgs since that's more strict and it would be removed as a part of #19519 anyways.

Aside from that, the PR is pretty straightforward.

References and Relevant Issues

Part of #18281

Validation Steps Performed

  • Profile icon picker
    • set none
    • set built-in icon
    • set emoji
    • set file
    • loads icons properly (for all of the scenarios above)
  • New tab menu folder icon picker
    • set none
    • set built-in icon
    • set emoji
    • set file
    • loads icons properly (for all of the scenarios above)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/19591 **State:** open **Merged:** No --- ## Summary of the Pull Request This PR pulls out the icon picker used in Profiles_Base.xaml to be its own control. Then it's reused as a way to set an icon on folders in the new tab menu. As a part of pulling out the icon picker into its own control, some minor code-health polish was added (i.e. lazy loading icon types and built in icons). The new tab menu didn't have a `NavigateToPageArgs`, so I took the declaration from #19519 and moved it here. I chose to do that instead of creating a `NavigateToNewTabMenuArgs` since that's more strict and it would be removed as a part of #19519 anyways. Aside from that, the PR is pretty straightforward. ## References and Relevant Issues Part of #18281 ## Validation Steps Performed - Profile icon picker - [x] set none - [x] set built-in icon - [x] set emoji - [x] set file - [x] loads icons properly (for all of the scenarios above) - New tab menu folder icon picker - [x] set none - [x] set built-in icon - [x] set emoji - [x] set file - [x] loads icons properly (for all of the scenarios above)
claunia added the pull-request label 2026-01-31 09:50:10 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31884