Switching the UI theme does not update the cached ruler colors
If you change the theme in Preferences, the timeline ruler text is still drawn with the previous cached color. The ruler should not cache any colors.
Notice the ruler text color is the same in both screenshots: