mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Added support for the 'metadata' element to TextComponent and DateTimeComponent.
This commit is contained in:
parent
6229592c74
commit
487422454e
|
@ -145,6 +145,9 @@ void DateTimeComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
LOG(LogError) << "Unknown text alignment string: " << str;
|
||||
}
|
||||
|
||||
if (properties & METADATA && elem->has("metadata"))
|
||||
setMetadataField(elem->get<std::string>("metadata"));
|
||||
|
||||
if (properties & FORCE_UPPERCASE && elem->has("forceUppercase"))
|
||||
setUppercase(elem->get<bool>("forceUppercase"));
|
||||
|
||||
|
|
|
@ -323,6 +323,9 @@ void TextComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
if (properties & TEXT && elem->has("text"))
|
||||
setText(elem->get<std::string>("text"));
|
||||
|
||||
if (properties & METADATA && elem->has("metadata"))
|
||||
setMetadataField(elem->get<std::string>("metadata"));
|
||||
|
||||
if (properties & FORCE_UPPERCASE && elem->has("forceUppercase"))
|
||||
setUppercase(elem->get<bool>("forceUppercase"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue