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

[Android] Custom shell back button color #22940

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kubaflo
Copy link
Collaborator

@kubaflo kubaflo commented Jun 9, 2024

Issues Fixed

Fixes #22450

Before After

@kubaflo kubaflo requested a review from a team as a code owner June 9, 2024 15:30
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jun 9, 2024
@@ -392,7 +394,7 @@ protected virtual async void UpdateLeftBarButtonItem(Context context, AToolbar t
DrawerArrowDrawable icon = null;
bool defaultDrawerArrowDrawable = false;

var tintColor = Colors.White;
var tintColor = Shell.GetForegroundColor(page) ?? Colors.White;
Copy link
Member

Choose a reason for hiding this comment

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

Does this make it match the behavior on iOS and Android?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, here's an iOS sample:

Simulator Screenshot - iPhone 15 Pro Max - 2024-06-10 at 00 41 23

Copy link
Contributor

Choose a reason for hiding this comment

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

Is the icon misaligned on iOS?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I used the default icon that has been included in the test app. It is too big, so it is why it looks like this. It's a different bug but not related to this change

@jsuarezruiz jsuarezruiz added platform/android 🤖 area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels Jun 10, 2024
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

Choose a reason for hiding this comment

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

Is the icon misaligned on iOS?

@Okachobe
Copy link

Would this fix an SVG that has multiple colors as well? like if you wanted a company logo with multiple colors because at the moment those are all white as well.

@mattleibow
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link

Commenter does not have sufficient privileges for PR 22940 in repo dotnet/maui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution platform/android 🤖
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom shell back button is always white in colour.
6 participants