To reproduce:
* change theme to Dark Theme
* be in layout designer(eg in main window)
* click "Generate code"(if that doesn't change them, try restarting TheIDE or try copying the code via button there)
After that, Theme colors in editor are totally rewritten with undesired colors(probably default colors).