struct

FArcUITheme

A game-UI theme: the named colours, fonts and metrics a .ui resolves its tokens against. Serialized as MDF under the engine's existing .theme extension, so it browses, cooks and validates like every other text asset. A screen names its theme; without one the host's project theme applies, and without that the built-in default theme — which carries exactly the colours the factory used to hardcode, so nothing an older asset authored moves.

Module
ArcUI
Header
#include "ArcUI/FArcUITheme.h"
Namespace
Mowo

Properties

TypeNameDescription
std::stringNameDefault "Default".
std::vector<FArcUIThemeColor>Colors
std::vector<FArcUIThemeFont>Fonts
std::vector<FArcUIThemeMetric>Metrics

Public functions

ReturnsNameDescription
const FArcUIThemeColor*FindColor
const FArcUIThemeFont*FindFont
const FArcUIThemeMetric*FindMetric
boolResolveColor
boolResolveMetric
voidSetColor
std::vector<std::string>ColorTokens
std::stringSerializeToMDF
boolParseFromMDF
boolLoadFromFile
boolSaveToFile
std::stringNormalizeToken"token/accent", "Content/UI/Game.theme.accent" and "AccentColor" all name the same token: the path prefix is dropped, the rest lowercased and run through the legacy aliases the hardcoded map understood.
FArcUIThemeMakeDefault
Vec4HighContrastColorWhat a colour token reads as under the player's High Contrast UI: surfaces go black (at least 92% opaque), text goes white, and every other colour keeps its hue at full brightness and at least half the luminance of white, so it reads against the black surface.
const FArcUITheme&Default

Function details

FindColor

C++
const FArcUIThemeColor* FindColor(const std::string& token) const

FindFont

C++
const FArcUIThemeFont* FindFont(const std::string& name) const

FindMetric

C++
const FArcUIThemeMetric* FindMetric(const std::string& name) const

ResolveColor

C++
bool ResolveColor(const std::string& token, Vec4& out) const

ResolveMetric

C++
bool ResolveMetric(const std::string& name, float& out) const

SetColor

C++
void SetColor(const std::string& token, const Vec4& value)

ColorTokens

C++
std::vector<std::string> ColorTokens() const

SerializeToMDF

C++
std::string SerializeToMDF() const

ParseFromMDF

C++
bool ParseFromMDF(const std::string& text, std::string* outError = nullptr)

LoadFromFile

C++
bool LoadFromFile(const std::string& path, std::string* outError = nullptr)

SaveToFile

C++
bool SaveToFile(const std::string& path) const

NormalizeToken

C++
static std::string NormalizeToken(const std::string& token)

"token/accent", "Content/UI/Game.theme.accent" and "AccentColor" all name the same token: the path prefix is dropped, the rest lowercased and run through the legacy aliases the hardcoded map understood.

MakeDefault

C++
static FArcUITheme MakeDefault()

HighContrastColor

C++
static Vec4 HighContrastColor(const std::string& normalizedToken, const Vec4& value)

What a colour token reads as under the player's High Contrast UI: surfaces go black (at least 92% opaque), text goes white, and every other colour keeps its hue at full brightness and at least half the luminance of white, so it reads against the black surface. Tokens only — a literal colour authored in a .ui is the author's to choose.

Default

C++
static const FArcUITheme& Default()
Generated from ArcUI/FArcUITheme.h via arcui.json · Nov 4, 2026Version 1.0.0