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

Bind to the background of border #72682

Merged
merged 2 commits into from
Mar 25, 2024
Merged

Conversation

Cosifne
Copy link
Member

@Cosifne Cosifne commented Mar 22, 2024

Fix #72681

Reason:
Context: CrispImage relies on imageutils:ImageThemingUtilities.ImageBackgroundColor to get the correct color. (real value is used in a value converter in Image library)
here is the problem, we do it wrong at the beginning:
image
It binds to the background of the parent element, which is not set (so transparent). So the icon would alwasys be black, and we get the problem when in dark mode. So it is tried to be fixed in this PR #72538

However, in that PR it simply removes the binding, which leads to another problem. imageutils:ImageThemingUtilities.ImageBackgroundColor of the button would be binded to the parent. This causes problem in the blue mode, because the parent imageutils:ImageThemingUtilities.ImageBackgroundColor is set to
image
in blue mode, causing the image changed to a light color
image
causing this problem
image

So the ultimate solution is: bind it to the background color of the rename flyout.

After:
image
image
image

@Cosifne Cosifne requested a review from a team as a code owner March 22, 2024 21:06
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 22, 2024
@Cosifne Cosifne merged commit 446741e into dotnet:main Mar 25, 2024
27 checks passed
@Cosifne Cosifne deleted the dev/shech/fixButton branch March 25, 2024 17:49
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Mar 25, 2024
@RikkiGibson RikkiGibson modified the milestones: Next, 17.10 P3 Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Needs UX Triage untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename toggle button not shown up in light theme
3 participants