From d7e5928b2ce88aed3290659b631572d8bc8fad67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 30 Jan 2024 11:33:08 +0100 Subject: [PATCH] Minor tweaks to spacing on savedata popup. Might help #18762 --- UI/SavedataScreen.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/SavedataScreen.cpp b/UI/SavedataScreen.cpp index b32e3e63ef..fd7b9b342e 100644 --- a/UI/SavedataScreen.cpp +++ b/UI/SavedataScreen.cpp @@ -91,19 +91,20 @@ public: if (!ginfo->Ready(GameInfoFlags::PARAM_SFO)) return; - ScrollView *contentScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 1.0f)); + ScrollView *contentScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 1.0f, UI::Margins(0, 3))); LinearLayout *content = new LinearLayout(ORIENT_VERTICAL); parent->Add(contentScroll); contentScroll->Add(content); LinearLayout *toprow = new LinearLayout(ORIENT_HORIZONTAL, new LayoutParams(FILL_PARENT, WRAP_CONTENT)); content->Add(toprow); + toprow->SetSpacing(0.0); if (ginfo->fileType == IdentifiedFileType::PSP_SAVEDATA_DIRECTORY) { std::string savedata_detail = ginfo->paramSFO.GetValueString("SAVEDATA_DETAIL"); std::string savedata_title = ginfo->paramSFO.GetValueString("SAVEDATA_TITLE"); if (ginfo->icon.texture) { - toprow->Add(new GameIconView(savePath_, 2.0f, new LinearLayoutParams(Margins(10, 5)))); + toprow->Add(new GameIconView(savePath_, 2.0f, new LinearLayoutParams(Margins(5, 5)))); } LinearLayout *topright = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT, 1.0f)); topright->SetSpacing(1.0f);