Moved theme.d into the window package. Added static method to the window class to gain access to the main window more elegantly.