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 set Button Color #36

Open
waqasakram117 opened this issue Dec 26, 2016 · 8 comments
Open

How to set Button Color #36

waqasakram117 opened this issue Dec 26, 2016 · 8 comments
Labels
enhancement New feature or request

Comments

@waqasakram117
Copy link

I am stuck to set Button color e.g i want to make black positive and red negative button.

@guuilp
Copy link

guuilp commented Jul 17, 2017

I really want to know how to do that too.

@guuilp
Copy link

guuilp commented Jul 17, 2017

@javiersantos may you help us?

@idragon81
Copy link

Need this too

@manufunk
Copy link

manufunk commented Aug 6, 2017

Same question for me

@javiersantos
Copy link
Owner

As the library is based on material-dialogs by @afollestad, you can define the button colours in your styles.xml: https://github.com/afollestad/material-dialogs#global-theming

I will work on a better solution, but this workaround could help meanwhile.

@javiersantos javiersantos added the enhancement New feature or request label Aug 14, 2017
@DanielVd
Copy link

Thanks @javiersantos!

@DanielVd
Copy link

DanielVd commented Aug 16, 2017

@waqas117 @guuilp @idragon81 @Manu206 read this: https://github.com/afollestad/material-dialogs#global-theming.

You have to put this in your app style:

<!--
        By default, the positive action text color is derived
        from the colorAccent attribute of AppCompat or android:colorAccent
        attribute of the Material theme.
-->
<item name="md_positive_color">#673AB7</item>

@sudeshkumara
Copy link

@DanielVd Thank you very much, dude.. You saved my day.

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

No branches or pull requests

7 participants