-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Windows] Fixed BarTextColor applied to secondary toolbar items #28932
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
Open
NirmalKumarYuvaraj
wants to merge
6
commits into
dotnet:main
Choose a base branch
from
NirmalKumarYuvaraj:fix-20177
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+80
−2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MartyIX
reviewed
Apr 11, 2025
@@ -0,0 +1,61 @@ | |||
namespace Maui.Controls.Sample.Issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be file-scoped namespace, if you need to touch the PR again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MartyIX Modified
/azp run MAUI-UITests-public |
jsuarezruiz
reviewed
Apr 14, 2025
Azure Pipelines successfully started running 1 pipeline(s). |
jsuarezruiz
approved these changes
Apr 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
community ✨
Community Contribution
partner/syncfusion
Issues / PR's with Syncfusion collaboration
platform/windows 🪟
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses an issue with the toolbar item text color in the Windows platform and includes the addition of a new test case to ensure the issue is resolved.
Root cause
The
BarTextColor
is applied to all toolbar items. However, the background is only set for the command bar. The background of the secondary toolbar items container is not customizable and remains white. Consequently, when the text color is white, the secondary toolbar items become invisible.Description of Change
Toolbar text color update:
UpdateTextColor
method call forToolbarItemOrder.Primary
items to ensure the correct text color is applied only to primary toolbar items (src/Controls/src/Core/Toolbar/Toolbar.Windows.cs
).New test case for issue 20177:
BarTextColor
(src/Controls/tests/TestCases.HostApp/Issues/Issue20177.cs
).src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue20177.cs
).Issues Fixed
Fixes #20177
Validated the behaviour in the following platforms
Output
Before.2.mp4
After.1.mp4