Move delete button theme resources into CommonResources.xaml #14258

Closed
opened 2026-01-31 04:05:16 +00:00 by claunia · 8 comments
Owner

Originally created by @carlos-zamora on GitHub (Jun 18, 2021).

There's a few places in the Settings UI where we have a "delete button":

We should move these over to CommonResources.xaml.

Examples of what this would look like:

If we have any other theme resources that we use in a few places, we should do the same. I'm also open to the idea of having a separate file named something like CommonThemeResources.xaml if we wanted to take that route.

Originally created by @carlos-zamora on GitHub (Jun 18, 2021). There's a few places in the Settings UI where we have a "delete button": - [Actions Page](https://github.com/microsoft/terminal/blob/b6593216f2f10c6e2b9922c22bcd22e4618020c5/src/cascadia/TerminalSettingsEditor/Actions.xaml#L317-L364) - [Color Schemes Page](https://github.com/microsoft/terminal/blob/b6593216f2f10c6e2b9922c22bcd22e4618020c5/src/cascadia/TerminalSettingsEditor/ColorSchemes.xaml#L290-L337) - [Profiles Page - Delete Profile](https://github.com/microsoft/terminal/blob/b6593216f2f10c6e2b9922c22bcd22e4618020c5/src/cascadia/TerminalSettingsEditor/Profiles.xaml#L161-L208) - (PR #10317) Profiles Page - Delete Appearance: (just look up "Firebrick") We should move these over to [CommonResources.xaml](https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalSettingsEditor/CommonResources.xaml). Examples of what this would look like: - https://github.com/microsoft/terminal/blob/b6593216f2f10c6e2b9922c22bcd22e4618020c5/src/cascadia/TerminalSettingsEditor/CommonResources.xaml#L14-L32 - https://github.com/microsoft/microsoft-ui-xaml/blob/main/dev/CommonStyles/Common_themeresources.xaml If we have any other theme resources that we use in a few places, we should do the same. I'm also open to the idea of having a separate file named something like `CommonThemeResources.xaml` if we wanted to take that route.
Author
Owner

@sourabh112 commented on GitHub (Aug 24, 2021):

Hi @miniksa @carlos-zamora, Can I work on this issue? As I'm quite new to open-source, I might need your guidance.

@sourabh112 commented on GitHub (Aug 24, 2021): Hi @miniksa @carlos-zamora, Can I work on this issue? As I'm quite new to open-source, I might need your guidance.
Author
Owner

@zadjii-msft commented on GitHub (Aug 24, 2021):

@sourabh112 Go right ahead!

@zadjii-msft commented on GitHub (Aug 24, 2021): @sourabh112 Go right ahead!
Author
Owner

@sourabh112 commented on GitHub (Aug 25, 2021):

Thanks @zadjii-msft , for the opportunity and sorry for late reply. I'm starting with making myself familiar with the code, so that my changes won't affect anything else.

@sourabh112 commented on GitHub (Aug 25, 2021): Thanks @zadjii-msft , for the opportunity and sorry for late reply. I'm starting with making myself familiar with the code, so that my changes won't affect anything else.
Author
Owner

@jelonmusk commented on GitHub (Aug 31, 2021):

Hi
@miniksa @carlos-zamora, I would also like to work on this issue.
p.s. I'm a first-time contributor!

@jelonmusk commented on GitHub (Aug 31, 2021): Hi @miniksa @carlos-zamora, I would also like to work on this issue. p.s. I'm a first-time contributor!
Author
Owner

@jelonmusk commented on GitHub (Aug 31, 2021):

https://github.com/jelonmusk/terminal/blob/main/src/cascadia/TerminalSettingsEditor/CommonResources.xaml

Here's the link to changes made in CommonResource.xaml file.
@miniksa Could you please review it?

@jelonmusk commented on GitHub (Aug 31, 2021): https://github.com/jelonmusk/terminal/blob/main/src/cascadia/TerminalSettingsEditor/CommonResources.xaml Here's the link to changes made in CommonResource.xaml file. @miniksa Could you please review it?
Author
Owner

@miniksa commented on GitHub (Sep 1, 2021):

I will look at the PR.

@miniksa commented on GitHub (Sep 1, 2021): I will look at the PR.
Author
Owner

@ghost commented on GitHub (May 24, 2022):

:tada:This issue was addressed in #12973, which has now been successfully released as Windows Terminal v1.13.1143.🎉

Handy links:

@ghost commented on GitHub (May 24, 2022): :tada:This issue was addressed in #12973, which has now been successfully released as `Windows Terminal v1.13.1143`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.13.1143) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (May 24, 2022):

:tada:This issue was addressed in #12973, which has now been successfully released as Windows Terminal Preview v1.14.143.🎉

Handy links:

@ghost commented on GitHub (May 24, 2022): :tada:This issue was addressed in #12973, which has now been successfully released as `Windows Terminal Preview v1.14.143`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.14.143) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14258