Skip to main content

Module tray

Module tray 

Source

Enumsยง

TrayIconKind ๐Ÿ”’

Constantsยง

TRAY_ALPHA_THRESHOLD ๐Ÿ”’
TRAY_FILL_RGB ๐Ÿ”’
TRAY_ICON_BEDTIME_BYTES ๐Ÿ”’
TRAY_ICON_BYTES ๐Ÿ”’
TRAY_ICON_INACTIVE_BYTES ๐Ÿ”’
TRAY_ICON_PAUSED_BYTES ๐Ÿ”’
TRAY_OUTLINE_RADIUS ๐Ÿ”’
TRAY_OUTLINE_RGB ๐Ÿ”’

Functionsยง

build_profile_submenu ๐Ÿ”’
icon_is_template ๐Ÿ”’
Whether the tray icon should be registered as a template image.
outline_glyph ๐Ÿ”’
Repaint a monochrome glyphโ€™s body to fill and ring it with outline, so it contrasts against both light and dark panels. Glyph-body alpha is preserved (anti-aliased edges stay smooth); the outline ring is fully opaque; everything else stays transparent.
outline_glyph_for_panels ๐Ÿ”’
profile_menu_id ๐Ÿ”’
read_profiles_blocking ๐Ÿ”’
resume_break_label ๐Ÿ”’
seconds_until_tomorrow_morning
setup
spawn_countdown_ticker ๐Ÿ”’
tooltip_for ๐Ÿ”’
tooltip_for_state ๐Ÿ”’
Tooltip that also explains the current visual state. When breaks are silently auto-suppressed (DND, camera, video, app-pause, off-hours) we append a โ€œWhy: โ€ฆโ€ line so a hover answers the โ€œwhy is the icon dim?โ€ question without opening Settings.
tray_icon_kind_for ๐Ÿ”’
tray_image ๐Ÿ”’
Decode a tray-icon asset and adapt it to the platform: macOS keeps the raw black template (AppKit tints it), every other OS gets the light-fill/dark-outline recolour so the glyph survives a dark panel (#86).
tray_title_for ๐Ÿ”’