Skip to content

Commit

Permalink
fix missing icons
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed Jun 5, 2024
1 parent 45678e6 commit 3d70fbb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### fix
- showing incorrect format on dates at start of the app.
- complex text with icons on toolbar items cause wraps.
- missing icons on some uwp apps.

### refactor
- refactor on window event manager to allow synthetic events.
Expand Down
4 changes: 2 additions & 2 deletions src/apps/seelenweg/modules/item/app/TemporalApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { filenameFromPath, getGeneratedFilesPath } from '../../shared/utils/app';

import { AppFromBackground, HWND, IApp, SpecialItemType } from '../../shared/store/domain';
import { UWP_TARGET_SIZE_POSTFIXS } from '../../shared/utils/domain';
import { UWP_IMAGE_POSTFIXES } from '../../shared/utils/domain';

export interface TemporalApp extends IApp {
type: SpecialItemType.TemporalPin;
Expand Down Expand Up @@ -40,7 +40,7 @@ export class TemporalApp {
return;
}

for (const postfix of UWP_TARGET_SIZE_POSTFIXS) {
for (const postfix of UWP_IMAGE_POSTFIXES) {
const logoPathUWP =
uwpPackage.InstallLocation + '\\' + app.Square44x44Logo.replace('.png', postfix);
if (await fs.exists(logoPathUWP)) {
Expand Down
10 changes: 7 additions & 3 deletions src/apps/seelenweg/modules/shared/utils/domain.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const UWP_TARGET_SIZE_POSTFIXS = [
const UWP_TARGET_SIZE_POSTFIXES = [
'.targetsize-256_altform-lightunplated.png',
'.targetsize-256.png',
'.targetsize-96_altform-lightunplated.png',
Expand All @@ -9,14 +9,18 @@ export const UWP_TARGET_SIZE_POSTFIXS = [
'.targetsize-48.png',
'.targetsize-32_altform-lightunplated.png',
'.targetsize-32.png',
'.png',
];

export const UWP_SCALE_POSTFIXS = [
const UWP_SCALE_POSTFIXES = [
'.scale-400.png',
'.scale-200.png',
'.scale-150.png',
'.scale-125.png',
'.scale-100.png',
];

export const UWP_IMAGE_POSTFIXES = [
...UWP_SCALE_POSTFIXES,
...UWP_TARGET_SIZE_POSTFIXES,
'.png',
];

0 comments on commit 3d70fbb

Please sign in to comment.