|
|
@@ -755,7 +755,7 @@ void LuaApi::register_types() {
|
|
|
// Theme management
|
|
|
"theme_manager", sol::property([](EditorCore& e) -> ThemeManager& { return e.theme_manager(); }),
|
|
|
"config", sol::property([](EditorCore& e) -> Config& { return e.config(); }), // Added config property
|
|
|
- "set_theme", [](EditorCore& e, const std::string& theme_name) { e.theme_manager().set_active_theme(theme_name); }, // Corrected
|
|
|
+ "set_theme", [](EditorCore& e, const std::string& theme_name) { e.set_theme(theme_name); }, // Corrected
|
|
|
"active_theme", sol::property([](EditorCore& e) -> const Theme& { return *e.theme_manager().active_theme(); }), // Corrected
|
|
|
"message", &EditorCore::set_message, // Added message alias for set_message
|
|
|
|