Use two segmented controls for setting category (e.g. arithmetic operator or color operator) and operator (e.g add or divide).