update cursor and selection color