From 2130a1e3cf4fc3f9e5c111a9c36e340d5f3a5baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Sat, 2 Apr 2016 15:44:06 +0300 Subject: [PATCH] Fixed|UI|Home: Incorrect layout and initial column count The number of columns should be updated when the games have been found. Also, save icons should be explicitly sized. --- doomsday/apps/client/src/ui/home/homewidget.cpp | 1 + doomsday/apps/client/src/ui/home/savelistwidget.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/doomsday/apps/client/src/ui/home/homewidget.cpp b/doomsday/apps/client/src/ui/home/homewidget.cpp index 1cdc2fcb2d..50e2fe568f 100644 --- a/doomsday/apps/client/src/ui/home/homewidget.cpp +++ b/doomsday/apps/client/src/ui/home/homewidget.cpp @@ -213,6 +213,7 @@ DENG_GUI_PIMPL(HomeWidget) blanker->guiDeleteLater(); updateVisibleColumnsAndTabs(); + calculateColumnCount(); updateLayout(); // Restore previous state? diff --git a/doomsday/apps/client/src/ui/home/savelistwidget.cpp b/doomsday/apps/client/src/ui/home/savelistwidget.cpp index ebcd20fffe..c8ad5dff53 100644 --- a/doomsday/apps/client/src/ui/home/savelistwidget.cpp +++ b/doomsday/apps/client/src/ui/home/savelistwidget.cpp @@ -81,6 +81,7 @@ DENG_GUI_PIMPL(SaveListWidget) auto const &saveItem = item.as(); button.setImage(style().images().image(Game::logoImageForId(saveItem.gameId()))); + button.setOverrideImageSize(style().fonts().font("default").height().value() * 1.4f); } void toggleSelectedItem(ButtonWidget &button)