| 207 | } |
| 208 | |
| 209 | bool AGenUIEngine::loadDesignTokenConfig(const std::string &designTokenConfig, std::string &result) { |
| 210 | if (!_isRunning.load()) { |
| 211 | return false; |
| 212 | } |
| 213 | bool success = TokenParser::getInstance().loadFromJsonString(designTokenConfig); |
| 214 | if (!success) { |
| 215 | result = "Failed to parse design token config"; |
| 216 | } |
| 217 | return success; |
| 218 | } |
| 219 | |
| 220 | void AGenUIEngine::setDayNightMode(const std::string &mode) { |
| 221 | AGENUI_LOG("theme mode set to %s", mode.c_str()); |