I see the default theme is set to Monokai in this line.
This is somewhat of a problem if I don't have the Monokai.tmTheme file, nor do I want to use it. The problem is that as soon as TextEditorWidget is created
edbee::Edbee::instance()->setThemePath(":/resources/edbee/themes"); // Enables to set theme by name.
m_pEditor = new edbee::TextEditorWidget();
m_pEditor->setMinimumHeight(200);
an error message is logged:
"texttheme.cpp" @ 424 "Error theme not found :/resources/edbee/themes/Monokai.tmTheme."
This is understandable, since the Monokai.tmTheme is not even there, but I want it to start with a different theme, i.e. different config.
Question
Can I set the config (in particular the theme) beforehand, so that this error message would not get logged for users that don't want to use Monokai? Is that an option?
I see the default theme is set to
Monokaiin this line.This is somewhat of a problem if I don't have the
Monokai.tmThemefile, nor do I want to use it. The problem is that as soon asTextEditorWidgetis createdan error message is logged:
This is understandable, since the
Monokai.tmThemeis not even there, but I want it to start with a different theme, i.e. different config.Question
Can I set the config (in particular the theme) beforehand, so that this error message would not get logged for users that don't want to use Monokai? Is that an option?