Is there any way to force KDevelop to use only a single color for all variables?
Open Settings -> Configure KDevelop..., select Language Support tab, move Local colorization intensity slider to the left.
Settings -> Configure KDevelop...
Language Support
Local colorization intensity