jaredrummler / Cyanea

A theme engine for Android
Apache License 2.0
1.45k stars 144 forks source link

How to set the default theme color #28

Closed tcqq closed 5 years ago

tcqq commented 5 years ago

@jaredrummler How to set the default theme color?

tcqq commented 5 years ago

I found the method, just add the code in the Application.

        Cyanea.instance.edit {
            primary(Color.BLUE)
            accent(Color.CYAN)
            backgroundResource(R.color.red)
        }