ensure text contrast in TabPainter::Paint (updates issue 2705)