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