userprefs: replace  theme hook by context preprocessor