Skip to content
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

Move delete button theme resources into CommonResources.xaml #10454

Closed
carlos-zamora opened this issue Jun 18, 2021 · 8 comments · Fixed by #12973
Closed

Move delete button theme resources into CommonResources.xaml #10454

carlos-zamora opened this issue Jun 18, 2021 · 8 comments · Fixed by #12973
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. good first issue This is a fix that might be easier for someone to do as a first contribution Help Wanted We encourage anyone to jump in on these. Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. Resolution-Fix-Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@carlos-zamora
Copy link
Member

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:

  • <ResourceDictionary.ThemeDictionaries>
    <ResourceDictionary x:Key="Light">
    <Style x:Key="SecondaryTextBlockStyle"
    TargetType="TextBlock">
    <Setter Property="Foreground" Value="{ThemeResource SystemBaseMediumColor}" />
    </Style>
    </ResourceDictionary>
    <ResourceDictionary x:Key="Dark">
    <Style x:Key="SecondaryTextBlockStyle"
    TargetType="TextBlock">
    <Setter Property="Foreground" Value="{ThemeResource SystemBaseMediumColor}" />
    </Style>
    </ResourceDictionary>
    <ResourceDictionary x:Key="HighContrast">
    <Style x:Key="SecondaryTextBlockStyle"
    TargetType="TextBlock" />
    <!-- Do not mess with the foreground color for High Contrast. Let it ride as is. -->
    </ResourceDictionary>
    </ResourceDictionary.ThemeDictionaries>
  • 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.

@carlos-zamora carlos-zamora added Help Wanted We encourage anyone to jump in on these. Product-Terminal The new Windows Terminal. Issue-Task It's a feature request, but it doesn't really need a major design. Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. good first issue This is a fix that might be easier for someone to do as a first contribution labels Jun 18, 2021
@ghost ghost added the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Jun 18, 2021
@carlos-zamora carlos-zamora added this to the Terminal v2.0 milestone Jun 18, 2021
@carlos-zamora carlos-zamora removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Jun 18, 2021
@sourabh112
Copy link

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

@zadjii-msft
Copy link
Member

@sourabh112 Go right ahead!

@sourabh112
Copy link

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.

@jelonmusk
Copy link

jelonmusk commented 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
Copy link

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?

@miniksa
Copy link
Member

miniksa commented Sep 1, 2021

I will look at the PR.

@ghost ghost mentioned this issue Apr 24, 2022
@ghost ghost added the In-PR This issue has a related PR label Apr 24, 2022
@ghost ghost closed this as completed in #12973 Apr 29, 2022
ghost pushed a commit that referenced this issue Apr 29, 2022
Some changes to the Settings UI:
* Removed borders, made Settings use a single background
* Updated color schemes buttons
* Created DeleteButtonStyle based on accent button - closes #10454

![image](https://user-images.githubusercontent.com/101892345/164984872-0fc75dc6-b4c0-4273-a2a6-b2b8a8d4d8ca.png)
@ghost ghost added Resolution-Fix-Committed Fix is checked in, but it might be 3-4 weeks until a release. and removed In-PR This issue has a related PR labels Apr 29, 2022
carlos-zamora pushed a commit that referenced this issue May 12, 2022
Some changes to the Settings UI:
* Removed borders, made Settings use a single background
* Updated color schemes buttons
* Created DeleteButtonStyle based on accent button - closes #10454

![image](https://user-images.githubusercontent.com/101892345/164984872-0fc75dc6-b4c0-4273-a2a6-b2b8a8d4d8ca.png)

(cherry picked from commit a7d2885)
Service-Card-Id: 81805354
Service-Version: 1.13
@ghost
Copy link

ghost commented May 24, 2022

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

Handy links:

@ghost
Copy link

ghost commented May 24, 2022

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

Handy links:

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. good first issue This is a fix that might be easier for someone to do as a first contribution Help Wanted We encourage anyone to jump in on these. Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. Resolution-Fix-Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants