Skip to content

Commit

Permalink
square images for capsules and live capsules
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed Oct 19, 2024
1 parent cbbc49c commit 85ff87f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## 2.5.26

### Added
- Ability to search for square 512x512 and 1024x1024 images for capsules and wide capsules (disabled by default). Resolves [issue 703](/~https://github.com/SteamGridDB/steam-rom-manager/issues/703).

## 2.5.25

### Changed
Expand Down
1 change: 1 addition & 0 deletions src/lang/en-US/langStrings.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
"stylesIconTitle": "Allowed icon styles",
"sizesTitle": "Allowed banner dimensions",
"sizesHeroTitle": "Allowed hero dimensions",
"sizesTallTitle": "Allowed portrait dimensions",
"sizesIconTitle": "Allowed icon dimensions"
},
"logger": {
Expand Down
4 changes: 4 additions & 0 deletions src/lib/image-providers/available-providers-lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export const providerInfoLang: ProviderInfo = {
label: APP.lang.sgdbProvider.sizesHeroTitle,
info: APP.lang.sgdbProvider.docs__md.input.join(""),
},
sizesTall: {
label: APP.lang.sgdbProvider.sizesTallTitle,
info: APP.lang.sgdbProvider.docs__md.input.join(""),
},
sizesIcon: {
label: APP.lang.sgdbProvider.sizesIconTitle,
info: APP.lang.sgdbProvider.docs__md.input.join(""),
Expand Down
8 changes: 7 additions & 1 deletion src/lib/image-providers/available-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const providerInfo: ProviderInfo = {
},
sizes: {
inputType: "multiselect",
allowedValues: ["460x215", "920x430"],
allowedValues: ["460x215", "920x430","512x512","1024x1024"],
multiple: true,
allowEmpty: true,
},
Expand All @@ -116,6 +116,12 @@ export const providerInfo: ProviderInfo = {
multiple: true,
allowEmpty: true,
},
sizesTall: {
inputType: "multiselect",
allowedValues: ["600x900","512x512","1024x1024"],
multiple: true,
allowEmpty: true
},
sizesIcon: {
inputType: "multiselect",
allowedValues: [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/image-providers/steamgriddb.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class SteamGridDbProvider extends GenericProvider {
} else if (self.proxy.imageType === "tall") {
query = self.client.getGrids(
Object.assign(params, {
dimensions: ["600x900"],
dimensions: choose(self.proxy.imageProviderAPIs.sizesTall, ["600x900"]),
styles: self.proxy.imageProviderAPIs.styles,
}),
);
Expand Down
1 change: 1 addition & 0 deletions src/models/language.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export interface languageStruct {
stylesIconTitle: string;
sizesTitle: string;
sizesHeroTitle: string;
sizesTallTitle: string;
sizesIconTitle: string;
docs__md: {
self: string[];
Expand Down

0 comments on commit 85ff87f

Please sign in to comment.