mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Fixed two minor compatibility issues for legacy themes.
This commit is contained in:
parent
91d4c0b45a
commit
ea8aac03f0
|
@ -228,6 +228,13 @@ void GamelistView::legacyOnThemeChanged(const std::shared_ptr<ThemeData>& theme)
|
|||
mImageComponents[LOGO]->applyTheme(theme, getName(), "image_logo", ALL);
|
||||
mImageComponents[BACKGROUND]->applyTheme(theme, getName(), "image_background", ALL);
|
||||
|
||||
auto themeView = theme->getViewElements(getName());
|
||||
if (themeView.elements.find("text_logoText") == themeView.elements.end())
|
||||
mTextComponents[LOGOTEXT]->setVisible(false);
|
||||
|
||||
if (getName() == "basic")
|
||||
mPrimary->setAlignment(TextListComponent<FileData*>::PrimaryAlignment::ALIGN_CENTER);
|
||||
|
||||
// Make sure we don't display both the logo image and logo text.
|
||||
if (mImageComponents[LOGO]->hasImage())
|
||||
mTextComponents[LOGOTEXT]->setVisible(false);
|
||||
|
|
Loading…
Reference in a new issue