There is an ergonomic principle which says that controls in a complex system should be differentiated by color, shape and placement, to prevent mistakes. Earlier cockpit designs often had controls which guaranteed mistakes, for instance the B-17 had the flap switch next to the gear switch, and they were identical switches without any differentiation at all. This caused tired pilots in sometimes shot-up airplanes to flip the wrong switch and raise the gear when the were on the ground.
This is a picture of the B-17 controls:

You can see a number of ergonomic errors on this. The gear and flaps are the two red boxes in the picture, identical switches and practically next to each other. the other switches for lights, fuel cut-off valves, boost pumps and lights were all together and identical switches. It was easy to accidentally shut off the fuel rather than turn on the boost pump by mistake, and it did happen.
This is the throttle quadrant and gear switch of a PA-28:

You can see the mixture and throttle are different colors, shapes and placements. The gear is close at hand, but also a very different shape and color. The Boeing cockpits don't use toggle switches partly to make them easily identifiable visually and by feel.