From 4e24831540664b0fd194ecf8c1a4b6dae4651b67 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 25 Jan 2021 18:46:26 +0100 Subject: [PATCH] Some cosmetic adjustments for the scraper GUI. --- es-app/src/guis/GuiScraperSearch.cpp | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/es-app/src/guis/GuiScraperSearch.cpp b/es-app/src/guis/GuiScraperSearch.cpp index 66163da99..428b68a8e 100644 --- a/es-app/src/guis/GuiScraperSearch.cpp +++ b/es-app/src/guis/GuiScraperSearch.cpp @@ -85,10 +85,14 @@ GuiScraperSearch::GuiScraperSearch( mMD_ReleaseDate = std::make_shared(mWindow); mMD_ReleaseDate->setColor(mdColor); mMD_ReleaseDate->setUppercase(true); - mMD_Developer = std::make_shared(mWindow, "", font, mdColor); - mMD_Publisher = std::make_shared(mWindow, "", font, mdColor); - mMD_Genre = std::make_shared(mWindow, "", font, mdColor); - mMD_Players = std::make_shared(mWindow, "", font, mdColor); + mMD_Developer = std::make_shared(mWindow, "", font, mdColor, ALIGN_LEFT, + Vector3f::Zero(), Vector2f::Zero(), 0x00000000, 0.02f); + mMD_Publisher = std::make_shared(mWindow, "", font, mdColor, ALIGN_LEFT, + Vector3f::Zero(), Vector2f::Zero(), 0x00000000, 0.02f); + mMD_Genre = std::make_shared(mWindow, "", font, mdColor, ALIGN_LEFT, + Vector3f::Zero(), Vector2f::Zero(), 0x00000000, 0.02f); + mMD_Players = std::make_shared(mWindow, "", font, mdColor, ALIGN_LEFT, + Vector3f::Zero(), Vector2f::Zero(), 0x00000000, 0.02f); mMD_Filler = std::make_shared(mWindow, "", font, mdColor); if (Settings::getInstance()->getString("Scraper") != "thegamesdb") @@ -96,17 +100,17 @@ GuiScraperSearch::GuiScraperSearch( if (mScrapeRatings) mMD_Pairs.push_back(MetaDataPair(std::make_shared - (mWindow, "RATING:", font, mdLblColor), mMD_Rating, false)); + (mWindow, "RATING: ", font, mdLblColor), mMD_Rating, false)); mMD_Pairs.push_back(MetaDataPair(std::make_shared - (mWindow, "RELEASED:", font, mdLblColor), mMD_ReleaseDate)); + (mWindow, "RELEASED: ", font, mdLblColor), mMD_ReleaseDate)); mMD_Pairs.push_back(MetaDataPair(std::make_shared - (mWindow, "DEVELOPER:", font, mdLblColor), mMD_Developer)); + (mWindow, "DEVELOPER: ", font, mdLblColor), mMD_Developer)); mMD_Pairs.push_back(MetaDataPair(std::make_shared - (mWindow, "PUBLISHER:", font, mdLblColor), mMD_Publisher)); + (mWindow, "PUBLISHER: ", font, mdLblColor), mMD_Publisher)); mMD_Pairs.push_back(MetaDataPair(std::make_shared - (mWindow, "GENRE:", font, mdLblColor), mMD_Genre)); + (mWindow, "GENRE: ", font, mdLblColor), mMD_Genre)); mMD_Pairs.push_back(MetaDataPair(std::make_shared - (mWindow, "PLAYERS:", font, mdLblColor), mMD_Players)); + (mWindow, "PLAYERS: ", font, mdLblColor), mMD_Players)); // If no rating is being scraped, add a filler to make sure the fonts keep the same // size and the GUI looks consistent. if (!mScrapeRatings)