From c7abea61467364d98514ba27231ec903202fd760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 8 Mar 2020 22:21:59 +0100 Subject: [PATCH] UI: Temporary solution to the layout issue: Remove the gear button from the recent screen. Can always use it from the other screens. --- UI/MainScreen.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 57f500faa5..b5d26b1547 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -674,14 +674,18 @@ void GameBrowser::Refresh() { gl->SetSpacing(4.0f); gameList_ = gl; } - LinearLayout *gridOptionColumn = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(64.0, 64.0f)); - gridOptionColumn->Add(new Spacer(12.0)); - gridOptionColumn->Add(new Choice(ImageID("I_GEAR"), new LayoutParams(64.0f, 64.0f)))->OnClick.Handle(this, &GameBrowser::GridSettingsClick); - LinearLayout *grid = new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT)); - gameList_->ReplaceLayoutParams(new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 0.75)); - grid->Add(gameList_); - grid->Add(gridOptionColumn); - Add(grid); + // Until we can come up with a better space to put it (next to the tabs?) let's get rid of the icon config + // button on the Recent tab, it's ugly. You can use the button from the other tabs. + + // LinearLayout *gridOptionColumn = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(64.0, 64.0f)); + // gridOptionColumn->Add(new Spacer(12.0)); + // gridOptionColumn->Add(new Choice(ImageID("I_GEAR"), new LayoutParams(64.0f, 64.0f)))->OnClick.Handle(this, &GameBrowser::GridSettingsClick); + // LinearLayout *grid = new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT)); + // gameList_->ReplaceLayoutParams(new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 0.75)); + // grid->Add(gameList_); + // grid->Add(gridOptionColumn); + // Add(grid); + Add(gameList_); } // Find games in the current directory and create new ones.