载入中...
搜索中...
未找到
UiThemePreview.cpp
浏览该文件的文档.
16UiThemePreviewSnapshot UiThemePreviewService::build(const UiThemeCatalogTarget& catalog, const ObjectId& themeId,
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Serializable catalog of named UI themes with one active publication slot.
Definition UiTheme.h:60
std::string runtimeName(const ObjectId &id) const
Runtime name written to ui::globalThemeName(): dark, light, or custom.
Definition UiTheme.cpp:151
const ObjectId & activeId() const noexcept
Active publication id; empty only if the catalog failed to seed.
Definition UiTheme.h:93
Result< UiThemeAsset > theme(const ObjectId &id) const
Copy one named theme, or NotFound.
Definition UiTheme.cpp:143
UiThemePreviewSnapshot build(const UiThemeCatalogTarget &catalog, const ObjectId &themeId, Revision expectedRevision) const
Copy tokens for themeId when expectedRevision matches the catalog.
Definition UiThemePreview.cpp:16
Result< void > publish(const UiThemeCatalogTarget &catalog) const
Replace the process global theme with the catalog's active asset.
Definition UiThemePreview.cpp:40
Diagnostic ruleDiagnostic(eve::DiagnosticCode code, RuleId rule, DiagnosticSeverity severity, std::string message)
Build a common diagnostic carrying an open editing rule identity.
Definition EditingResult.h:25
Definition UiDocument.cpp:9
std::vector< EditorDiagnostic > validateThemeTokens(const ui::Theme &theme)
Validate theme tokens.
Definition UiThemeTokens.cpp:345
@ PreconditionViolation
Revision-bound Theme copy used by gallery hosts without mutating globalTheme.
Definition UiTheme.h:163
Revision documentRevision
Definition UiTheme.h:165
std::vector< EditorDiagnostic > diagnostics
Definition UiTheme.h:169