mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Set the clang-format option SpaceBeforeCpp11BracedList to true.
This commit is contained in:
parent
e64976d4bc
commit
8a6652552f
|
@ -119,7 +119,7 @@ SpaceAfterCStyleCast: false
|
||||||
SpaceAfterLogicalNot: false
|
SpaceAfterLogicalNot: false
|
||||||
SpaceAfterTemplateKeyword: true
|
SpaceAfterTemplateKeyword: true
|
||||||
SpaceBeforeAssignmentOperators: true
|
SpaceBeforeAssignmentOperators: true
|
||||||
SpaceBeforeCpp11BracedList: false
|
SpaceBeforeCpp11BracedList: true
|
||||||
SpaceBeforeCtorInitializerColon: true
|
SpaceBeforeCtorInitializerColon: true
|
||||||
SpaceBeforeInheritanceColon: true
|
SpaceBeforeInheritanceColon: true
|
||||||
SpaceBeforeParens: ControlStatements
|
SpaceBeforeParens: ControlStatements
|
||||||
|
|
|
@ -26,8 +26,9 @@ std::vector<std::string> ThemeData::sSupportedViews{{"all"}, {"system"}, {"
|
||||||
std::vector<std::string> ThemeData::sSupportedFeatures {
|
std::vector<std::string> ThemeData::sSupportedFeatures {
|
||||||
{"navigationsounds"}, {"video"}, {"carousel"}, {"z-index"}, {"visible"}};
|
{"navigationsounds"}, {"video"}, {"carousel"}, {"z-index"}, {"visible"}};
|
||||||
|
|
||||||
std::map<std::string, std::map<std::string, ThemeData::ElementPropertyType>> ThemeData::sElementMap{
|
std::map<std::string, std::map<std::string, ThemeData::ElementPropertyType>>
|
||||||
{"image",
|
ThemeData::sElementMap // Line break.
|
||||||
|
{{"image",
|
||||||
{{"pos", NORMALIZED_PAIR},
|
{{"pos", NORMALIZED_PAIR},
|
||||||
{"size", NORMALIZED_PAIR},
|
{"size", NORMALIZED_PAIR},
|
||||||
{"maxSize", NORMALIZED_PAIR},
|
{"maxSize", NORMALIZED_PAIR},
|
||||||
|
|
|
@ -278,8 +278,8 @@ void ImageGridComponent<T>::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
||||||
mMargin = elem->get<glm::vec2>("margin") * screen;
|
mMargin = elem->get<glm::vec2>("margin") * screen;
|
||||||
|
|
||||||
if (elem->has("padding"))
|
if (elem->has("padding"))
|
||||||
mPadding =
|
mPadding = elem->get<glm::vec4>("padding") *
|
||||||
elem->get<glm::vec4>("padding") * glm::vec4{screen.x, screen.y, screen.x, screen.y};
|
glm::vec4 {screen.x, screen.y, screen.x, screen.y};
|
||||||
|
|
||||||
if (elem->has("autoLayout"))
|
if (elem->has("autoLayout"))
|
||||||
mAutoLayout = elem->get<glm::vec2>("autoLayout");
|
mAutoLayout = elem->get<glm::vec2>("autoLayout");
|
||||||
|
|
Loading…
Reference in a new issue