diff --git a/THEMES.md b/THEMES.md index 3348cc88b..12af1e548 100644 --- a/THEMES.md +++ b/THEMES.md @@ -98,7 +98,7 @@ Display tags define some "meta" display attributes about your theme. Display tag `` - the hex color to use for selected text on the GuiGameList. Default is zero, which means no change. -`` - if present, the games list names will be left aligned to the value of `` (default 0.5). +`` - if present, the games list names will be left aligned to the value of `` + ``. On by default for detailed themes. `` - if present, the system name header won't be displayed (useful for replacing it with an image). If you're making a complete custom theme, you probably want to use this. diff --git a/src/components/GuiGameList.cpp b/src/components/GuiGameList.cpp index 106a804f1..cf3f10ac0 100644 --- a/src/components/GuiGameList.cpp +++ b/src/components/GuiGameList.cpp @@ -344,6 +344,7 @@ void GuiGameList::updateTheme() }else{ mList.setCentered(true); mList.setOffset(0, mList.getOffset().y); + mList.setTextOffsetX(0); } } diff --git a/src/components/ThemeComponent.cpp b/src/components/ThemeComponent.cpp index 12cde07fd..751a629bc 100644 --- a/src/components/ThemeComponent.cpp +++ b/src/components/ThemeComponent.cpp @@ -72,10 +72,6 @@ ThemeComponent::ThemeComponent(Window* window) : GuiComponent(window) AudioManager::getInstance()->registerSound(mSoundMap["menuBack"]); AudioManager::getInstance()->registerSound(mSoundMap["menuOpen"]); - mListFont.reset(); - mDescFont.reset(); - mFastSelectFont.reset(); - setDefaults(); } @@ -95,7 +91,7 @@ void ThemeComponent::setDefaults() mBoolMap["hideHeader"] = false; mBoolMap["hideDividers"] = false; - mBoolMap["listCentered"] = true; + mBoolMap["listCentered"] = false; mFloatMap["listOffsetX"] = 0.5; mFloatMap["listTextOffsetX"] = 0.005f;