Stroke painting icon has red line?

I can’t seem to select a colour on the model properly? select the colour with my pencil but the moment I lift off the colour goes back to default? What am I doing wrong? Also it has a red line going across the icon in the bottom left corner? One the latest version

That means that in your brush tool - stroke painting is OFF.