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

How to customize ActionBar color? #360

Open
zerorooot opened this issue Mar 19, 2023 · 1 comment
Open

How to customize ActionBar color? #360

zerorooot opened this issue Mar 19, 2023 · 1 comment

Comments

@zerorooot
Copy link

It seems that the default color is green, but the theme color of my app is black, how to change it?

@citrusella
Copy link

I found I was able to do this by using override on a color of the same name (i.e. the strategy employed here)... but I've only gotten it to work in the colors.xml file and not yet in the styles file where my colors are actually defined. (I have multiple styles in the app and would prefer if my settings could match the user-selected theme. I suppose if I have to then I could define colors that should only apply to the settings page that can go with any theme...)

Specifically, the color that seems to define the action bar for the library is colorPrimaryVariant (I think for Android's stock action bar it'd be colorPrimary according to how my app's action bar looks vs the settings with the changed color... huh). If you define a color for colorPrimaryVariant and then override it, it should apply to the library's action bar too.

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

2 participants