mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Placed the primary elements first in the ThemeData element map.
This commit is contained in:
parent
5ec0fda3a2
commit
75ebd839b9
|
@ -101,6 +101,119 @@ std::map<std::string, std::map<std::string, std::string>> ThemeData::sPropertyAt
|
|||
|
||||
std::map<std::string, std::map<std::string, ThemeData::ElementPropertyType>>
|
||||
ThemeData::sElementMap {
|
||||
{"carousel",
|
||||
{{"pos", NORMALIZED_PAIR},
|
||||
{"size", NORMALIZED_PAIR},
|
||||
{"origin", NORMALIZED_PAIR},
|
||||
{"type", STRING},
|
||||
{"staticItem", PATH},
|
||||
{"itemType", STRING},
|
||||
{"defaultItem", PATH},
|
||||
{"maxItemCount", FLOAT},
|
||||
{"maxLogoCount", FLOAT}, // For backward compatibility with legacy themes.
|
||||
{"itemsBeforeCenter", UNSIGNED_INTEGER},
|
||||
{"itemsAfterCenter", UNSIGNED_INTEGER},
|
||||
{"itemSize", NORMALIZED_PAIR},
|
||||
{"itemScale", FLOAT},
|
||||
{"itemTransitions", STRING},
|
||||
{"itemInterpolation", STRING},
|
||||
{"itemRotation", FLOAT},
|
||||
{"itemRotationOrigin", NORMALIZED_PAIR},
|
||||
{"itemAxisHorizontal", BOOLEAN},
|
||||
{"itemHorizontalAlignment", STRING},
|
||||
{"itemVerticalAlignment", STRING},
|
||||
{"wheelHorizontalAlignment", STRING},
|
||||
{"horizontalOffset", FLOAT},
|
||||
{"verticalOffset", FLOAT},
|
||||
{"reflections", BOOLEAN},
|
||||
{"reflectionsOpacity", FLOAT},
|
||||
{"reflectionsFalloff", FLOAT},
|
||||
{"unfocusedItemOpacity", FLOAT},
|
||||
{"defaultLogo", PATH}, // For backward compatibility with legacy themes.
|
||||
{"logoSize", NORMALIZED_PAIR}, // For backward compatibility with legacy themes.
|
||||
{"logoScale", FLOAT}, // For backward compatibility with legacy themes.
|
||||
{"logoRotation", FLOAT}, // For backward compatibility with legacy themes.
|
||||
{"logoRotationOrigin", NORMALIZED_PAIR}, // For backward compatibility with legacy themes.
|
||||
{"logoAlignment", STRING}, // For backward compatibility with legacy themes.
|
||||
{"color", COLOR},
|
||||
{"colorEnd", COLOR},
|
||||
{"gradientType", STRING},
|
||||
{"text", STRING},
|
||||
{"textColor", COLOR},
|
||||
{"textBackgroundColor", COLOR},
|
||||
{"fontPath", PATH},
|
||||
{"fontSize", FLOAT},
|
||||
{"letterCase", STRING},
|
||||
{"letterCaseCollections", STRING},
|
||||
{"letterCaseGroupedCollections", STRING},
|
||||
{"lineSpacing", FLOAT},
|
||||
{"fadeAbovePrimary", BOOLEAN},
|
||||
{"zIndex", FLOAT},
|
||||
{"legacyZIndexMode", STRING}}}, // For backward compatibility with legacy themes.
|
||||
{"grid",
|
||||
{{"pos", NORMALIZED_PAIR},
|
||||
{"size", NORMALIZED_PAIR},
|
||||
{"origin", NORMALIZED_PAIR},
|
||||
{"columns", UNSIGNED_INTEGER},
|
||||
{"staticItem", PATH},
|
||||
{"itemType", STRING},
|
||||
{"defaultItem", PATH},
|
||||
{"itemSize", NORMALIZED_PAIR},
|
||||
{"itemScale", FLOAT},
|
||||
{"itemSpacing", NORMALIZED_PAIR},
|
||||
{"itemTransitions", STRING},
|
||||
{"itemHorizontalAlignment", STRING},
|
||||
{"itemVerticalAlignment", STRING},
|
||||
{"horizontalMargin", FLOAT},
|
||||
{"verticalMargin", FLOAT},
|
||||
{"horizontalOffset", FLOAT},
|
||||
{"verticalOffset", FLOAT},
|
||||
{"unfocusedItemOpacity", FLOAT},
|
||||
{"edgeScaleInwards", BOOLEAN},
|
||||
{"color", COLOR},
|
||||
{"colorEnd", COLOR},
|
||||
{"gradientType", STRING},
|
||||
{"text", STRING},
|
||||
{"textColor", COLOR},
|
||||
{"textBackgroundColor", COLOR},
|
||||
{"fontPath", PATH},
|
||||
{"fontSize", FLOAT},
|
||||
{"letterCase", STRING},
|
||||
{"letterCaseCollections", STRING},
|
||||
{"letterCaseGroupedCollections", STRING},
|
||||
{"lineSpacing", FLOAT},
|
||||
{"fadeAbovePrimary", BOOLEAN},
|
||||
{"zIndex", FLOAT}}},
|
||||
{"textlist",
|
||||
{{"pos", NORMALIZED_PAIR},
|
||||
{"size", NORMALIZED_PAIR},
|
||||
{"origin", NORMALIZED_PAIR},
|
||||
{"selectorHeight", FLOAT},
|
||||
{"selectorOffsetY", FLOAT},
|
||||
{"selectorColor", COLOR},
|
||||
{"selectorColorEnd", COLOR},
|
||||
{"selectorGradientType", STRING},
|
||||
{"selectorImagePath", PATH},
|
||||
{"selectorImageTile", BOOLEAN},
|
||||
{"primaryColor", COLOR},
|
||||
{"secondaryColor", COLOR},
|
||||
{"selectedColor", COLOR},
|
||||
{"selectedSecondaryColor", COLOR},
|
||||
{"fontPath", PATH},
|
||||
{"fontSize", FLOAT},
|
||||
{"scrollSound", PATH}, // For backward compatibility with legacy themes.
|
||||
{"horizontalAlignment", STRING},
|
||||
{"alignment", STRING}, // For backward compatibility with legacy themes.
|
||||
{"horizontalMargin", FLOAT},
|
||||
{"letterCase", STRING},
|
||||
{"letterCaseCollections", STRING},
|
||||
{"letterCaseGroupedCollections", STRING},
|
||||
{"forceUppercase", BOOLEAN}, // For backward compatibility with legacy themes.
|
||||
{"lineSpacing", FLOAT},
|
||||
{"indicators", STRING},
|
||||
{"collectionIndicators", STRING},
|
||||
{"fadeAbovePrimary", BOOLEAN},
|
||||
{"zIndex", FLOAT}}},
|
||||
{"image",
|
||||
{{"pos", NORMALIZED_PAIR},
|
||||
{"size", NORMALIZED_PAIR},
|
||||
|
@ -273,119 +386,6 @@ std::map<std::string, std::map<std::string, ThemeData::ElementPropertyType>>
|
|||
{"opacity", FLOAT},
|
||||
{"visible", BOOLEAN},
|
||||
{"zIndex", FLOAT}}},
|
||||
{"carousel",
|
||||
{{"pos", NORMALIZED_PAIR},
|
||||
{"size", NORMALIZED_PAIR},
|
||||
{"origin", NORMALIZED_PAIR},
|
||||
{"type", STRING},
|
||||
{"staticItem", PATH},
|
||||
{"itemType", STRING},
|
||||
{"defaultItem", PATH},
|
||||
{"maxItemCount", FLOAT},
|
||||
{"maxLogoCount", FLOAT}, // For backward compatibility with legacy themes.
|
||||
{"itemsBeforeCenter", UNSIGNED_INTEGER},
|
||||
{"itemsAfterCenter", UNSIGNED_INTEGER},
|
||||
{"itemSize", NORMALIZED_PAIR},
|
||||
{"itemScale", FLOAT},
|
||||
{"itemTransitions", STRING},
|
||||
{"itemInterpolation", STRING},
|
||||
{"itemRotation", FLOAT},
|
||||
{"itemRotationOrigin", NORMALIZED_PAIR},
|
||||
{"itemAxisHorizontal", BOOLEAN},
|
||||
{"itemHorizontalAlignment", STRING},
|
||||
{"itemVerticalAlignment", STRING},
|
||||
{"wheelHorizontalAlignment", STRING},
|
||||
{"horizontalOffset", FLOAT},
|
||||
{"verticalOffset", FLOAT},
|
||||
{"reflections", BOOLEAN},
|
||||
{"reflectionsOpacity", FLOAT},
|
||||
{"reflectionsFalloff", FLOAT},
|
||||
{"unfocusedItemOpacity", FLOAT},
|
||||
{"defaultLogo", PATH}, // For backward compatibility with legacy themes.
|
||||
{"logoSize", NORMALIZED_PAIR}, // For backward compatibility with legacy themes.
|
||||
{"logoScale", FLOAT}, // For backward compatibility with legacy themes.
|
||||
{"logoRotation", FLOAT}, // For backward compatibility with legacy themes.
|
||||
{"logoRotationOrigin", NORMALIZED_PAIR}, // For backward compatibility with legacy themes.
|
||||
{"logoAlignment", STRING}, // For backward compatibility with legacy themes.
|
||||
{"color", COLOR},
|
||||
{"colorEnd", COLOR},
|
||||
{"gradientType", STRING},
|
||||
{"text", STRING},
|
||||
{"textColor", COLOR},
|
||||
{"textBackgroundColor", COLOR},
|
||||
{"fontPath", PATH},
|
||||
{"fontSize", FLOAT},
|
||||
{"letterCase", STRING},
|
||||
{"letterCaseCollections", STRING},
|
||||
{"letterCaseGroupedCollections", STRING},
|
||||
{"lineSpacing", FLOAT},
|
||||
{"fadeAbovePrimary", BOOLEAN},
|
||||
{"zIndex", FLOAT},
|
||||
{"legacyZIndexMode", STRING}}}, // For backward compatibility with legacy themes.
|
||||
{"grid",
|
||||
{{"pos", NORMALIZED_PAIR},
|
||||
{"size", NORMALIZED_PAIR},
|
||||
{"origin", NORMALIZED_PAIR},
|
||||
{"columns", UNSIGNED_INTEGER},
|
||||
{"staticItem", PATH},
|
||||
{"itemType", STRING},
|
||||
{"defaultItem", PATH},
|
||||
{"itemSize", NORMALIZED_PAIR},
|
||||
{"itemScale", FLOAT},
|
||||
{"itemSpacing", NORMALIZED_PAIR},
|
||||
{"itemTransitions", STRING},
|
||||
{"itemHorizontalAlignment", STRING},
|
||||
{"itemVerticalAlignment", STRING},
|
||||
{"horizontalMargins", NORMALIZED_PAIR},
|
||||
{"verticalMargins", NORMALIZED_PAIR},
|
||||
{"horizontalOffset", FLOAT},
|
||||
{"verticalOffset", FLOAT},
|
||||
{"unfocusedItemOpacity", FLOAT},
|
||||
{"edgeScaleInwards", BOOLEAN},
|
||||
{"color", COLOR},
|
||||
{"colorEnd", COLOR},
|
||||
{"gradientType", STRING},
|
||||
{"text", STRING},
|
||||
{"textColor", COLOR},
|
||||
{"textBackgroundColor", COLOR},
|
||||
{"fontPath", PATH},
|
||||
{"fontSize", FLOAT},
|
||||
{"letterCase", STRING},
|
||||
{"letterCaseCollections", STRING},
|
||||
{"letterCaseGroupedCollections", STRING},
|
||||
{"lineSpacing", FLOAT},
|
||||
{"fadeAbovePrimary", BOOLEAN},
|
||||
{"zIndex", FLOAT}}},
|
||||
{"textlist",
|
||||
{{"pos", NORMALIZED_PAIR},
|
||||
{"size", NORMALIZED_PAIR},
|
||||
{"origin", NORMALIZED_PAIR},
|
||||
{"selectorHeight", FLOAT},
|
||||
{"selectorOffsetY", FLOAT},
|
||||
{"selectorColor", COLOR},
|
||||
{"selectorColorEnd", COLOR},
|
||||
{"selectorGradientType", STRING},
|
||||
{"selectorImagePath", PATH},
|
||||
{"selectorImageTile", BOOLEAN},
|
||||
{"primaryColor", COLOR},
|
||||
{"secondaryColor", COLOR},
|
||||
{"selectedColor", COLOR},
|
||||
{"selectedSecondaryColor", COLOR},
|
||||
{"fontPath", PATH},
|
||||
{"fontSize", FLOAT},
|
||||
{"scrollSound", PATH}, // For backward compatibility with legacy themes.
|
||||
{"horizontalAlignment", STRING},
|
||||
{"alignment", STRING}, // For backward compatibility with legacy themes.
|
||||
{"horizontalMargin", FLOAT},
|
||||
{"letterCase", STRING},
|
||||
{"letterCaseCollections", STRING},
|
||||
{"letterCaseGroupedCollections", STRING},
|
||||
{"forceUppercase", BOOLEAN}, // For backward compatibility with legacy themes.
|
||||
{"lineSpacing", FLOAT},
|
||||
{"indicators", STRING},
|
||||
{"collectionIndicators", STRING},
|
||||
{"fadeAbovePrimary", BOOLEAN},
|
||||
{"zIndex", FLOAT}}},
|
||||
{"gameselector",
|
||||
{{"selection", STRING},
|
||||
{"gameCount", UNSIGNED_INTEGER}}},
|
||||
|
@ -404,8 +404,6 @@ std::map<std::string, std::map<std::string, ThemeData::ElementPropertyType>>
|
|||
{"textStyle", STRING}, // For backward compatibility with legacy themes.
|
||||
{"opacity", FLOAT},
|
||||
{"customButtonIcon", PATH}}},
|
||||
{"sound",
|
||||
{{"path", PATH}}},
|
||||
{"navigationsounds",
|
||||
{{"systembrowseSound", PATH},
|
||||
{"quicksysselectSound", PATH},
|
||||
|
@ -415,6 +413,8 @@ std::map<std::string, std::map<std::string, ThemeData::ElementPropertyType>>
|
|||
{"favoriteSound", PATH},
|
||||
{"launchSound", PATH}}},
|
||||
// Legacy components below, not in use any longer but needed for backward compatibility.
|
||||
{"sound",
|
||||
{{"path", PATH}}},
|
||||
{"imagegrid",
|
||||
{{"pos", NORMALIZED_PAIR},
|
||||
{"size", NORMALIZED_PAIR},
|
||||
|
|
Loading…
Reference in a new issue