/** * Detects the theme based on the current config * @return {string} Theme based on looking at the value in config, if its not valid or not present use 'Default' */ protected function theme_file() { switch (HighlightedContentField::config()->theme) { case 'Django': case 'Eclipse': case 'Emacs': case 'FadeToGrey': case 'MDUltra': case 'FlashDevelop': case 'FlexBuilder': case 'RDark': return HighlightedContentField::config()->theme; default: return 'Default'; } }