From bde8fe818630c639b97bd88fca29de679707cee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lidwin?= Date: Sun, 16 Jul 2023 14:47:42 +0200 Subject: [PATCH 1/2] fix: favourites not applying new recent layout --- .../screens/Library/components/GamesList/index.tsx | 8 +++++--- src/frontend/screens/Library/index.tsx | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/frontend/screens/Library/components/GamesList/index.tsx b/src/frontend/screens/Library/components/GamesList/index.tsx index f34727aec2..6029794ba0 100644 --- a/src/frontend/screens/Library/components/GamesList/index.tsx +++ b/src/frontend/screens/Library/components/GamesList/index.tsx @@ -16,6 +16,7 @@ interface Props { ) => void onlyInstalled?: boolean isRecent?: boolean + isFavourite?: boolean } const GamesList = ({ @@ -24,7 +25,8 @@ const GamesList = ({ handleGameCardClick, isFirstLane = false, onlyInstalled = false, - isRecent = false + isRecent = false, + isFavourite = false }: Props): JSX.Element => { const { gameUpdates } = useContext(ContextProvider) const { t } = useTranslation() @@ -92,7 +94,7 @@ const GamesList = ({ {!!library.length && library.map((gameInfo, index) => { const { app_name, is_installed, runner } = gameInfo - const isJustPlayed = isRecent && index === 0 + const isJustPlayed = (isFavourite || isRecent) && index === 0 let is_dlc = false if (gameInfo.runner !== 'sideload') { is_dlc = gameInfo.install.is_dlc ?? false @@ -108,7 +110,7 @@ const GamesList = ({ const hasUpdate = is_installed && gameUpdates?.includes(app_name) return ( { if (gameInfo.runner !== 'sideload') diff --git a/src/frontend/screens/Library/index.tsx b/src/frontend/screens/Library/index.tsx index 075aecd2b4..45d7d68add 100644 --- a/src/frontend/screens/Library/index.tsx +++ b/src/frontend/screens/Library/index.tsx @@ -366,6 +366,7 @@ export default React.memo(function Library(): JSX.Element { From bf66676c0db95d8447db566bfbe640149f905b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lidwin?= Date: Sun, 16 Jul 2023 14:54:20 +0200 Subject: [PATCH 2/2] improv: get higher res horizontal icons for GOG --- src/backend/storeManagers/gog/library.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/storeManagers/gog/library.ts b/src/backend/storeManagers/gog/library.ts index ee50c9e578..d915ee7e0d 100644 --- a/src/backend/storeManagers/gog/library.ts +++ b/src/backend/storeManagers/gog/library.ts @@ -636,7 +636,10 @@ export async function gogToUnifiedInfo( store_url: galaxyProductInfo?.links.product_card, developer: info.game.developers.map((dev) => dev.name).join(', '), app_name: String(info.external_id), - art_cover: `https:${galaxyProductInfo?.images.logo2x}`, + art_cover: + info.game?.logo?.url_format + ?.replace('{formatter}', '') + .replace('{ext}', 'jpg') || `https:${galaxyProductInfo?.images.logo2x}`, art_square: info.game.vertical_cover.url_format .replace('{formatter}', '') .replace('{ext}', 'jpg'),