| 192 | } |
| 193 | |
| 194 | bool AGenUIEngine::loadThemeConfig(const std::string &themeConfig, std::string &result) { |
| 195 | if (!_isRunning.load()) { |
| 196 | return false; |
| 197 | } |
| 198 | if (!_componentPropertySpecManager) { |
| 199 | result = "ComponentPropertySpecManager not initialized"; |
| 200 | return false; |
| 201 | } |
| 202 | bool success = _componentPropertySpecManager->loadFromString(themeConfig); |
| 203 | if (!success) { |
| 204 | result = "Failed to parse theme config"; |
| 205 | } |
| 206 | return success; |
| 207 | } |
| 208 | |
| 209 | bool AGenUIEngine::loadDesignTokenConfig(const std::string &designTokenConfig, std::string &result) { |
| 210 | if (!_isRunning.load()) { |