But then why are you adding `this.popup.setTheme(editor.getTheme());` ?
This rule overrides theme specific colors anyway, and in case of ambiance theme, there is a dark shadow, on white background.