The toggle switches in the cockpits of new aircraft are painted white. e.g. 737 MAX:
but a 727
Why?
The reason is threefold:
White knobs offer better contrast, and are thus easier to spot regardless of lighting conditions
The material used has improved and consistent friction and "feel" to it. Bare metal switches, especially when worn out by use may become slippery, and since some of the toggle switces have detents, operating them might be compromized.
The plastic coating (on at least most) of the switches can be renewed without replacing the whole switch assembly. For example on the larger switches white knobs are screw on -type