Modified ThemeUtils.