Show a 😽 startup indicator (tray icon / splash)#40
Merged
Conversation
The cat overlay is a frameless Tool window with no taskbar/tray presence, so until now the app gave no visible sign it had started (a window only appeared when a settings dialog was opened). Add a startup indicator: - A 😽 system-tray icon with a tooltip, a one-shot "Your cat is here" notification and a small menu (Chat / Reminder… / Ollama… / Quit). - When no system tray is available, fall back to a brief opaque splash card (😽 + name) so there is still a startup window. - Also sets the application window icon to the cat. Tests cover the icon and splash-card builders.
Drop the system-tray icon, splash card and startup notification. Instead make the cat overlay a normal Qt.Window (was Qt.Tool) so it gets an entry in the taskbar / program list at startup — with the "mycat" title and a 😽 window icon, matching how myEmojiboard appears. The application icon is set too so the dialogs share it.
Owner
Author
|
Changed approach per feedback: dropped the tray icon + splash + startup notification, and instead made the cat overlay a normal |
Both mycat and other python apps launch as "main.py", so Qt set the same WM_CLASS for all of them and the taskbar grouped mycat with e.g. myEmojiboard. Set the application/desktop name to "mycat" (drives the X11 WM_CLASS) plus RESOURCE_NAME for the instance, so the window's WM_CLASS is now "mycat", "mycat".
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.
Summary
The cat overlay is a frameless
Qt::Toolwindow with no taskbar or tray presence, so the app gave no visible sign it had started — a window only appeared once you opened a settings dialog. This adds a startup indication with a 😽 cat icon.offscreenplatform.Test plan
python -m pytestpasses (icon + splash-card builders covered).