garretyoder / Colorful

Android runtime theme library
Apache License 2.0
2.13k stars 193 forks source link

How to customize views in theme? #44

Open Morteza-Rastgoo opened 5 years ago

Morteza-Rastgoo commented 5 years ago

I have forced to load an style by calling:

            Colorful().edit()
                .setPrimaryColor(ThemeColor.RED)
                .setAccentColor(ThemeColor.BLUE)
                .setDarkTheme(false)
                .setTranslucent(false)
                .setCustomThemeOverride(R.style.AppThemeDark)
                .apply(activity!!) { activity!!.recreate() }

And set a textAppearance in my style:

Screen Shot 1397-12-21 at 15 11 45

But nothing seems to take a change in text color of my textviews or buttons.

Is there any guide to how to customize widgets?