Use shades of gray instead of dashed/dotted lines (#4255).