Timo Drick

04/12/2020, 8:38 PM
Most of the "controls" e.g.: FloatingActionButton, Slider, Circular/LinearProgressIndicator, Button using MaterialTheme.colors.primary as default color. But regarding to the documentation: and also to the documentation of ColorPalette this kind of elements should use secondary color. Is it planned to change this in the future? Or how should we apply the color themes inside of an app? Currently i have to use custom buttons/controls which override the default color every where. Just because i want to stick to the material theme coloring recommendation.

Vinay Gaba

04/13/2020, 2:35 AM
I apologize if I understood your question incorrectly, but here is an example if you wanted to see how to use a custom theme -


04/13/2020, 11:10 AM
It's the same using material components for Android. From button doc that kind of component use the primary color

Timo Drick

04/13/2020, 12:11 PM
Yes you are right. Just wondering why the documentation says:
Copy code
interface ColorPalette {
     * The primary color is the color displayed most frequently across your app's screens and
     * components.
    val primary: Color
     * The secondary color provides more ways to accent and distinguish your product.
     * Secondary colors are best for:
     * - Floating action buttons
     * - Selection controls, like sliders and switches
     * - Highlighting selected text
     * - Progress bars
     * - Links and headlines
    val secondary: Color
So maybe for FABs and Sliders secondary color would be better default value

Andrey Kulikov

04/15/2020, 5:16 PM
Thanks for noticing! we will update the default colors