Replace deprecated ColorSelectionDialog with ColorChooserDialog.