Convert switch statement to if-else statement in src/fragments/ColorPicker.java