Skip to content

Fix UWP icon scaling, colored Store logo, and restore .lnk extension (Follow-up to #94) - #97

Closed
MosabSoft wants to merge 6 commits into
iandiv:dev-testfrom
MosabSoft:master
Closed

MosabSoft wants to merge 6 commits into
iandiv:dev-testfrom
MosabSoft:master

Conversation

@MosabSoft

Copy link
Copy Markdown
Contributor

Hi @iandiv,

This is a follow-up PR to #94 addressing all the feedback points mentioned in the previous review:

1. Shortcut Resolution & Media Player

  • Fixed: Dragging Windows 11 Media Player now properly resolves to the modern packaged AUMID Microsoft.ZuneMusic_8wekyb3d8bbwe!Microsoft.ZuneMusic instead of falling back to legacy Windows Media Player.
  • Fixed: Resolved the issue where some dragged items occasionally appeared as A.lnk; clean, robust file name normalization is now enforced.

2. .lnk Extension Display Name

  • Fixed: Retained .lnk extension in display names across the popup tiles, list views, and group editors to match master design and expectations.

3. UWP Icon Sizing & High-Contrast Store Icon

  • Fixed Icon Sizing: Added transparent border detection and auto-trimming (GetNonTransparentBounds) so UWP icons fill tiles at standard size matching master, without excess empty padding.
  • Fixed Store Icon: Integrated native Windows Shell IShellItemImageFactory via shell:AppsFolder. Modern apps (such as Microsoft Store) now render their official 256×256 full-color shopping bag logo with 32-bit ARGB transparency, completely eliminating monochrome/high-contrast wireframe assets.

4. Packaged App Launching Stability

  • Routed packaged modern apps (e.g., Calculator, Store) to launch via explorer.exe shell:AppsFolder\{AUMID}, preventing direct unpackaged crashes or instant window closures.

Built and validated with dotnet publish -c Release -r win-x64 --self-contained true.

…, and optimize popup performance" -m "- Fix COM exceptions when resolving .lnk shortcuts containing Unicode/Arabic characters in Windows Shell." -m "- Extract crisp PWA and browser web app icons directly without Windows shortcut arrow overlays." -m "- Implement thread-safe memory caching for ShellInterop to prevent heavy recursive disk scans." -m "- Restore instant popup window loading by prioritizing pre-cached icons."
@iandiv

iandiv commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Hi @Eng-Mosab-Alhopishi , Sorry for the late response; I've been busy with work lately.

Thank you for your contributions and for addressing the feedback from #94! I really appreciate your effort.

For this PR, I'll manually apply and commit the changes I need one by one instead of merging the entire PR, so I can test each change and minimize potential regressions. I'll also credit you as the author of each commit for the changes I apply. Once I've tested all the changes I've selected, I'll close this PR.

And for future PRs, may I kindly ask you to separate features and fixes into smaller, focused PRs whenever possible? This would make reviewing and testing much easier.

Thanks again for contributing to AppGroup!

@iandiv iandiv closed this Oct 24, 2026
iandiv pushed a commit that referenced this pull request Oct 24, 2026
Routed packaged modern apps (e.g., Calculator, Store) to launch via explorer.exe shell:AppsFolder\{AUMID}, preventing direct unpackaged crashes or instant window closures. Extract their icon via IShellItemImageFactory instead of showing the explorer.exe icon. (#97)
iandiv added a commit that referenced this pull request Oct 26, 2026
* Refactor async file ops and improve item removal logic

Refactor FindExistingShortcut and FindExistingAppShortcut to run asynchronously for better UI responsiveness. Clean up and clarify RemoveItem_Click, ensuring combo boxes update correctly and icon preview resets or regenerates as needed. Remove redundant code.

* #79 Fix  wrong workindg directory, Improve process launch context and admin elevation

* Improve popup tracking, animation, and show/hide logic

* Improve popup closing and admin launch logic

- Set _lastHiddenAt to DateTime.Now when closing popup
- In TryLaunchApp, set working directory only if it exists
- Replace PowerShell-based TryRunAsAdmin with ProcessStartInfo
- Use UseShellExecute and "runas" verb for elevation
- Handle UAC cancellation (error 1223) gracefully

* Use FindAppGroupWindow to avoid matching other apps' windows

* Replace FindWindow with FindAppGroupWindow method

* UWP Icon Sizing & High-Contrast Store Icon

Fixed Icon Sizing: Added transparent border detection and auto-trimming (GetNonTransparentBounds) so UWP icons fill tiles at standard size matching master, without excess empty padding.

Fixed Store Icon: Integrated native Windows Shell IShellItemImageFactory via shell:AppsFolder. Modern apps (such as Microsoft Store) now render their official 256x256 full-color shopping bag logo with 32-bit ARGB transparency, completely eliminating monochrome/high-contrast wireframe assets.

* Fix cache lookup in GetLnkIconAsync

* Use stable hash for remote icon cache filenames

* Packaged App Launching Stability

Routed packaged modern apps (e.g., Calculator, Store) to launch via explorer.exe shell:AppsFolder\{AUMID}, preventing direct unpackaged crashes or instant window closures. Extract their icon via IShellItemImageFactory instead of showing the explorer.exe icon. (#97)

* fix(popup): card layout keeps previous theme after Windows theme change

* Update AppGroup.ico and EditGroup.ico images

* Use system small icon size for tray icon loading

Added SM_CXSMICON and SM_CYSMICON constants in NativeMethods.cs to retrieve system small icon dimensions. SystemTrayManager.cs now queries these metrics and loads tray icons at the correct size, replacing the previous hardcoded 16x16 size for better system integration.

---------

Co-authored-by: MOSAB_SOFT <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants