From c3b394f1b9e6cd663c20266bb2cd6498be84ded2 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Mon, 9 Jun 2014 12:40:48 -0500 Subject: [PATCH] Adjusted max selected logo height. --- src/views/SystemView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/SystemView.cpp b/src/views/SystemView.cpp index f38924514..9e844726d 100644 --- a/src/views/SystemView.cpp +++ b/src/views/SystemView.cpp @@ -44,13 +44,13 @@ void SystemView::populate() if(theme->getElement("system", "logo", "image")) { ImageComponent* logo = new ImageComponent(mWindow); - logo->setMaxSize(logoSize()); + logo->setMaxSize(Eigen::Vector2f(logoSize().x(), logoSize().y())); logo->applyTheme((*it)->getTheme(), "system", "logo", ThemeFlags::PATH); logo->setPosition((logoSize().x() - logo->getSize().x()) / 2, (logoSize().y() - logo->getSize().y()) / 2); // center e.data.logo = std::shared_ptr(logo); ImageComponent* logoSelected = new ImageComponent(mWindow); - logoSelected->setMaxSize(logoSize() * SELECTED_SCALE); + logoSelected->setMaxSize(Eigen::Vector2f(logoSize().x() * SELECTED_SCALE, logoSize().y() * SELECTED_SCALE * 0.70f)); logoSelected->applyTheme((*it)->getTheme(), "system", "logo", ThemeFlags::PATH); logoSelected->setPosition((logoSize().x() - logoSelected->getSize().x()) / 2, (logoSize().y() - logoSelected->getSize().y()) / 2); // center