Repository navigation
Improve App Launching, Window Detection, and Icon Handling - #101
Merged
Merged
Conversation
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.
…admin elevation
- 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
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.
Improve App Window Detection and Icon Rendering
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)
Packaged App Launching Stability
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🟦 App Launching
explorer.exeandshell:AppsFolderProcessStartInfoand handle UAC cancellation gracefully🟦 Window & Popup Management
FindAppGroupWindowto avoid matching unrelated application windows🟦 Icon Rendering & Caching
🟦 UI & File Operations
Summary
This PR improves application launching and window detection, refines popup behavior, and enhances icon rendering and caching across packaged apps, shortcuts, and the system tray. It also improves UI responsiveness, theme handling, and administrator launch behavior.