Fixed import/export theme bug

Added DynamicTheme function to import/export to fix bug which displayed
white theme in the import/export window when black theme was applied
elsewhere. Should fix issue #1976