Skip to content

[stat-gui][ui] Improve macOS startup info focus and application icon - #102

Merged
lee218llnl merged 2 commits into
llnl:developfrom
pramodk:pramodk/mac-focus-dock-icons
Dec 5, 2026
Merged

lee218llnl merged 2 commits into
llnl:developfrom
pramodk:pramodk/mac-focus-dock-icons

Conversation

@pramodk

@pramodk pramodk commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This is not critical, but it was a bit annoying that launching the standalone STAT GUI on macOS left its window behind
other applications. It was also a bit straightforward to locate STAT in the Dock because it used the default Python launcher icon:

image

and now we see:

image

same way on Ubuntu:

image
  • Request foreground focus after a GTK window is mapped on macOS.
  • Set the shared GTK window icon, macOS Dock icon.
  • Register the packaged STAT icon during GUI startup for both pip and Pixi installs
  • Keep both images under data/icons/ and update packaging, source lookup, README, and the Linux CI source copy.

Note

  • Tested stat-gui and stat-view locally on macOS with Homebrew/venv and Pixi installations.
  • A coding agent has been used to help with implementation and testing.

Same for Ubuntu/Linux behavior is not "cleanest" so I will PR that separately. For Ubuntu, post-startup hook looks reasonable. So including here.

@lee218llnl

Copy link
Copy Markdown
Collaborator

I can't test this myself, but it looks good to me. My only comment is that the logo image is a bit off.

@pramodk

pramodk commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

When you say a "bit off", do you mean slightly different design than the original one? I can create more closer. Slightly different in 3D angle looks better in the menu bar than flat version we have for docs purposes. But not designer by any means :)

On Linux desktop, pip or pixi installation, works same way with logo. Just take 5-6 seconds on first launch.

@lee218llnl

Copy link
Copy Markdown
Collaborator

To be more specific about the logo, the design was made to looks like there were three sets of traces with four frames each. In the generated logo in this PR, the main part of it the front 4 frames with STAT spelled out looks OK (words and colors). But the 2 sets of 4 frames behind it aren't supposed to be the same colors. The idea was to have 2 more sets of 4 different colored frames, just as you would get different colors in different STAT-merged traces. The frames also weren't intended to be 3 dimensional either. In fact, if you look closely there's a weird blend going on between the first set and second sets and also the second and third sets. Again, very picky, but as the designer of the logo, I see the slight AI misinterpretation.

@pramodk

pramodk commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Yeah, I did notice. Completely understandable!

Do you have high resolution version of gif or png version?

@pramodk

pramodk commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

let me know if one on the right looks acceptable / better:

image

@lee218llnl

Copy link
Copy Markdown
Collaborator

much, much, better. Thanks! Please let me know if this is good to go.

@pramodk
pramodk force-pushed the pramodk/mac-focus-dock-icons branch from f2db480 to 0785e24 Compare December 3, 2026 18:19
- Request activation after a GTK window is mapped, using the API available on the running macOS version.
- Declare the macOS bindings for pip and Pixi and keep the GUI usable when they are unavailable.
@pramodk
pramodk force-pushed the pramodk/mac-focus-dock-icons branch 3 times, most recently from 0280d5e to 1d1c55e Compare December 3, 2026 19:45
@pramodk

pramodk commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Yes, this is good to merge. CI should complete soon.

@pramodk
pramodk force-pushed the pramodk/mac-focus-dock-icons branch from 1d1c55e to 07e5a65 Compare December 3, 2026 20:50
@lee218llnl

Copy link
Copy Markdown
Collaborator

looks like the one check timed out due to external circumstances. I think this should be OK to merge.

@pramodk

pramodk commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

yes, lets merge this.

P.S. if macOS-15-arm runners will be limited, especially during PST time, we can remove that. Lets see for few days how their availability looks like and we can decide.

- Set the shared GTK window icon and use AppKit to set the macOS Dock icon.
- Keep both icons in data/icons and package them for pip and native installations, allowing startup to continue when icon setup fails.
- Register the packaged STAT icon during GUI startup for both pip and Pixi installs.
- Keep the desktop entry out of the app menu and preserve existing user launchers.
@pramodk
pramodk force-pushed the pramodk/mac-focus-dock-icons branch from 07e5a65 to 9aa8038 Compare December 4, 2026 07:46
@lee218llnl
lee218llnl merged commit 8e2de20 into llnl:develop Dec 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants