Refactored syntax highlighting and application theme management out of the main window's code behind