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

Accessiblity of text and switcher icon in the account header #2801

Open
7 tasks done
nikclayton opened this issue Dec 4, 2023 · 0 comments
Open
7 tasks done

Accessiblity of text and switcher icon in the account header #2801

nikclayton opened this issue Dec 4, 2023 · 0 comments

Comments

@nikclayton
Copy link

About this issue

When loading an image in to the accountHeaderBackground it's possible for the profile text (currentProfileName and currentProfileEmail) and switcher (accountSwitcherArrow) to become difficult to see because e.g., the text colour is dark and so is the loaded image.

It's possible to override some of these (e.g., using the Palette library after loading the image to generate some relevant colours and calling header.currentProfileName.setTextColor()), but this is fragile as it will be overwritten as soon as AccountHeaderView.reconstructHeader() is called.

reconstructHeader() uses colours from styleables, so those can't be changed at runtime.

I'd like to be able to set the colours / colour state lists used for the text and the switcher arrow (e.g., as nullable properties in AccountHeaderView.kt), with those colours taking priority over the styles.

Details

  •  Used library version

9.0.2

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant