javiersantos / MaterialStyledDialogs

A library that shows a beautiful and customizable Material-based dialog with header. API 14+ required.
Apache License 2.0
1.17k stars 155 forks source link

How to set Button Color #36

Open waqasakram117 opened 7 years ago

waqasakram117 commented 7 years ago

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

guuilp commented 7 years ago

I really want to know how to do that too.

guuilp commented 7 years ago

@javiersantos may you help us?

idragon81 commented 7 years ago

Need this too

manufunk commented 7 years ago

Same question for me

javiersantos commented 7 years ago

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.

DanielVd commented 7 years ago

Thanks @javiersantos!

DanielVd commented 7 years ago

@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 commented 4 years ago

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