tray

package
v0.22.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tray puts a Kite icon in the system tray so the app keeps running (and the VPN stays connected) when its window is closed, instead of quitting -- with a menu to reopen the window, disconnect, or actually quit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConnected

func SetConnected(connected bool)

SetConnected shows or hides the tray's Disconnect item to match the real connection state.

func Start

func Start(iconPNG []byte, onShow, onDisconnect, onQuit func())

Start blocks running the tray's native event loop until Quit is called, so call it in its own goroutine. iconPNG is used as-is on macOS/Linux; on Windows it's wrapped in a minimal ICO container first, since Windows tray icons need that format, not raw PNG.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL