Add class wrapper around color_funcs.*, drop its dependency on prefs.h