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

[GH-6523] Fix toolbar text color #6765

Merged
merged 5 commits into from
May 4, 2022

Conversation

pictos
Copy link
Contributor

@pictos pictos commented May 3, 2022

Description of Change

On Android and Windows the text color of ToolbarItem doesn't respect the BarTextColor property of NavigationPage, this PR fix it.

Issues Fixed

Fixes #6523

@mattleibow mattleibow requested a review from PureWeen May 3, 2022 06:31
@mattleibow mattleibow self-assigned this May 3, 2022
@mattleibow mattleibow added the area-navigation NavigationPage label May 3, 2022
@mattleibow mattleibow added this to the 6.0.300 milestone May 3, 2022
@pictos pictos requested review from PureWeen and mattleibow May 3, 2022 21:53
@@ -46,7 +46,7 @@ internal void UpdateMenu()
{
button.SetBinding(AppBarButton.IconProperty, "IconImageSource", _imageSourceIconElementConverter);
}
else
else if (!item.IconImageSource.IsNullOrEmpty())
Copy link
Member

Choose a reason for hiding this comment

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

should we add another else here that nulls out the "content" on the button?

Copy link
Contributor Author

@pictos pictos May 3, 2022

Choose a reason for hiding this comment

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

Not sure if I got that, Oh I see now... On Windows can we have both image + text or does one override the other? If we can have both I've to add another else

@pictos
Copy link
Contributor Author

pictos commented May 3, 2022

@PureWeen I just tested on my end nulling and setting a value to the IconImageSource and everything worked as expected. here's the video
https://user-images.githubusercontent.com/20712372/166594183-49b19cb0-2b27-49af-a705-f8d30e9b1854.mp4

@rmarinho
Copy link
Member

rmarinho commented May 4, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@PureWeen PureWeen merged commit e28bd00 into dotnet:main May 4, 2022
@pictos pictos deleted the pj/toolbar-text-color-fix branch May 4, 2022 20:15
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-navigation NavigationPage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BarTextColour remains [white] for ToolBarItem on Android
4 participants