载入中...
搜索中...
未找到
UiThemeTokens.h
浏览该文件的文档.
1#pragma once
2
4
5namespace eve::ui_editing {
6
8EditorValue themeTokensValue(const ui::Theme& theme);
10Result<ui::Theme> parseThemeTokens(const EditorValue& value);
12[[nodiscard]] Result<void> assignThemeToken(ui::Theme& theme, const PropertyPath& path, const EditorValue& value);
14EditorValue readThemeToken(const ui::Theme& theme, const PropertyPath& path);
18std::vector<EditorDiagnostic> validateThemeTokens(const ui::Theme& theme);
20ui::Theme themeFromPreset(UiThemeBasePreset preset);
22std::string presetName(UiThemeBasePreset preset);
24Result<UiThemeBasePreset> parsePreset(const std::string& name);
25
26} // namespace eve::ui_editing
double value
Object::Ptr theme
std::string name
std::string path
Definition PlayHost.cpp:110
editing::PropertySchema PropertySchema
EditorValue readThemeToken(const ui::Theme &theme, const PropertyPath &path)
Reads theme token.
ui::Theme themeFromPreset(UiThemeBasePreset preset)
Theme from preset.
Result< void > assignThemeToken(ui::Theme &theme, const PropertyPath &path, const EditorValue &value)
Assign theme token.
std::vector< EditorDiagnostic > validateThemeTokens(const ui::Theme &theme)
Validate theme tokens.
std::string presetName(UiThemeBasePreset preset)
Preset name.
PropertySchema themeTokenSchema()
Theme token schema.
Result< UiThemeBasePreset > parsePreset(const std::string &name)
Parse preset.
UiThemeBasePreset
Base preset used when resetting a named theme asset.
Definition UiTheme.h:44
editing::Value EditorValue
Definition UiDocument.h:44
Result< ui::Theme > parseThemeTokens(const EditorValue &value)
Parse theme tokens.
EditorValue themeTokensValue(const ui::Theme &theme)
Theme tokens value.