From ea8aac03f0d2cbcbb20465aafb664a726962c05d Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 16 Aug 2022 19:12:20 +0200 Subject: [PATCH] Fixed two minor compatibility issues for legacy themes. --- es-app/src/views/GamelistLegacy.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/es-app/src/views/GamelistLegacy.h b/es-app/src/views/GamelistLegacy.h index cc95551ec..03c665048 100644 --- a/es-app/src/views/GamelistLegacy.h +++ b/es-app/src/views/GamelistLegacy.h @@ -228,6 +228,13 @@ void GamelistView::legacyOnThemeChanged(const std::shared_ptr& 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::PrimaryAlignment::ALIGN_CENTER); + // Make sure we don't display both the logo image and logo text. if (mImageComponents[LOGO]->hasImage()) mTextComponents[LOGOTEXT]->setVisible(false);