From cbea006a7068d35fe117629d315190fdd3cb48bd Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 25 Oct 2022 22:58:03 +0200 Subject: [PATCH] Removed support for setting logoScale to lower than 1.0 for legacy themes as it introduced backward compatibility issues. --- es-core/src/components/primary/CarouselComponent.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index e8cc42093..1311782c5 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -1155,8 +1155,9 @@ void CarouselComponent::applyTheme(const std::shared_ptr& theme, // Legacy themes. if (mLegacyMode) { + // Don't allow logoScale below 1.0 for legacy themes as it introduces compatibility issues. if (elem->has("logoScale")) - mItemScale = glm::clamp(elem->get("logoScale"), 0.5f, 3.0f); + mItemScale = glm::clamp(elem->get("logoScale"), 1.0f, 3.0f); if (elem->has("logoSize")) { // Keep size within a 0.05 and 1.0 multiple of the screen size. glm::vec2 itemSize {elem->get("logoSize")};