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

Fix inconsistency in the color of QueryTextBox #6222

Merged
merged 2 commits into from
Aug 29, 2020

Conversation

dsrivastavv
Copy link
Contributor

@dsrivastavv dsrivastavv commented Aug 28, 2020

Summary of the Pull Request

Fix inconsistency in the color of QueryTextBox

PR Checklist

  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed

Info on Pull Request

The color of the QueryTextBox text was different when autocomplete text suggestion was available as show below :

Search text without autocomplete text

Issue2-2

Search text with autocomplete text

Issue2-1

This issue was happening because of changes made in #6049, where AutoCompleteTextBlock was placed on top on QueryTextBox causing the lighter color of the former to be visible. This PR makes the following changes to fix this issue.

  1. Set z-index of AutoCompleteTextBlock to be strictly less than QueryTextBox.
  2. Set background color of AutoCompleteTextBlock to SystemChromeLow and of QueryTextBox to transparent.

Validation Steps Performed

Manually validated that color inconsistency is not present in QueryTextBox

@dsrivastavv dsrivastavv added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label Aug 28, 2020
@dsrivastavv dsrivastavv requested a review from a team August 28, 2020 22:37
Copy link
Contributor

@ryanbodrug-microsoft ryanbodrug-microsoft left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@arjunbalgovind arjunbalgovind left a comment

Choose a reason for hiding this comment

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

LGTM! Checked on low res VM as well. Searchbox text and autocomplete text renders correctly
image

@dsrivastavv dsrivastavv merged commit 777e1dc into microsoft:master Aug 29, 2020
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.

3 participants