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

[PT Run] Updated themes (dark/light/highcontrast) #4119

Merged
merged 3 commits into from
Jun 10, 2020

Conversation

niels9001
Copy link
Contributor

@niels9001 niels9001 commented Jun 5, 2020

Summary of the Pull Request

  • Added a brush for 'secondary text' (instead of primary text font with a lower opacity)
  • Minor updates to the Light and Dark themes to reflect the updated secondary text brush
  • Added a BorderThickness of 1 to visualize the border when a high contrast theme is selected. Transparant for Light and Dark
  • Updated the high contrast themes, to reflect the default high contrast settings.

Highcontrast

Merge together with #4165 so the correct colors/themes are applied.

PR Checklist

Copy link
Contributor

@dsrivastavv dsrivastavv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing 🔥.

@dsrivastavv dsrivastavv added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label Jun 5, 2020
@htcfreek
Copy link
Collaborator

htcfreek commented Jun 5, 2020

@niels9001
Will this influence #2988 while merging?

@crutkas
Copy link
Member

crutkas commented Jun 5, 2020

#2988 I really wish there was a larger discussion on before the work was done

@AnuthaDev
Copy link

Hey @niels9001 Can you please separate the border brushes of searchbox and resultlist box, so as to not impact #2988😊

@dsrivastavv dsrivastavv mentioned this pull request Jun 6, 2020
3 tasks
@niels9001
Copy link
Contributor Author

@AnuthaDev That might be an issue, yes. Not sure where we are with that PR, so let's follow up there - I'm happy to make any changes if needed to solve a potential conflict

I saw your comment about breaking ClearType due to (semi)-transparency. What specific brushes are impacted at the moment that you'd recommend to update? And is there any documentation I can check out, wasn't aware of this.

@AnuthaDev
Copy link

@AnuthaDev
Copy link

If you want to dive really deep:

microsoft/terminal#5277

@crutkas
Copy link
Member

crutkas commented Jun 6, 2020

The PR #2988 is a good idea but it was work done without collaboration. Niels helped properly get our HC settings correct in this PR.

@niels9001
Copy link
Contributor Author

@AnuthaDev The latest commit changed the transparency to fully opaque colors - let me know if this solves your concern wrt ClearType. Only the 'focus' color (AccentBrush) is still using opacity, we might want to update that as well but maybe in a new PR.

@AnuthaDev
Copy link

@niels9001 Unfortunately its a bit trickier than just fixing colors, because we are using a dropshadoweffect, We need to apply this fix to get clear text. I think a new issue should be opened for cleartype after this PR is merged.

@AnuthaDev
Copy link

Opened #4172 for cleartype

@crutkas
Copy link
Member

crutkas commented Jun 10, 2020

@niels9001, we're going to merge this in, cool?

@niels9001
Copy link
Contributor Author

@niels9001, we're going to merge this in, cool?

Cool!

@AnuthaDev
Copy link

@crutkas this conflicts with #4180

@AnuthaDev
Copy link

(Can't have a borderbrush if you have no borders.. )

@niels9001
Copy link
Contributor Author

(Can't have a borderbrush if you have no borders.. )

Not sure if I understand - what specific lines/controls?

Borders for both SearchBox and ResultsList have a BorderThickness of 1 (line 57 and 78).

They are set to transparent in the light/dark themes - white/black when in high contrast mode, following the W10 windowing appearance.

Let me know!

@AnuthaDev
Copy link

AnuthaDev commented Jun 10, 2020

@niels9001 In MainWindow.xaml, I had to replace the Border containers by Grid to improve font rendering, so the border being set to 1 won't work as there would be no border.

Anyways, I found the solution, I will rebase and fix the issue. @crutkas Good to go👍

@crutkas crutkas merged commit d76234c into master Jun 10, 2020
@crutkas crutkas deleted the users/niels9001/run-contrastthemes branch June 10, 2020 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-PowerToys Run Improved app launch PT Run (Win+R) Window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants