This patch is mainly intended to improve readability and maintainability of the source code.
It isn't introducing any new user-visible features, except for disabling/enabling the color-mode label&combobox according to the currently selected cpugraph mode: