Documentation
¶
Overview ¶
Package icon generates system tray icons for the Goose application.
On platforms that don't support dynamic title text (Linux, Windows), icons are rendered as colored circle badges with white numbers:
- Red circle: incoming PRs needing review
- Green circle: outgoing PRs blocked
- Both: red (top-left) + green (bottom-right)
Generated icons are 48×48 pixels for optimal display on KDE and GNOME.
Index ¶
Constants ¶
View Source
const Size = 48
Size is the standard system tray icon size (48×48 for KDE/GNOME).
Variables ¶
This section is empty.
Functions ¶
func Badge ¶
Badge generates a badge icon showing PR counts.
Visual design for accessibility:
- Incoming only: Red CIRCLE (helps color-blind users distinguish)
- Outgoing only: Green SQUARE
- Both: Diagonal split (red top-left, green bottom-right)
Returns nil if both counts are zero (caller should use happy face icon). Numbers are capped at 99 for display purposes.
Types ¶
Click to show internal directories.
Click to hide internal directories.