tray

package
v0.40.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tray is the Windows system-tray adapter for the Wails reference UI. Exposes status icons, the mode-selection menu, and the live recording indicator that the desktop runtime updates as hotkeys fire.

Audit 2026-05-24 maintainability sweep.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State string

State represents the current tray status.

const (
	StateIdle       State = "idle"
	StateRecording  State = "recording"
	StateProcessing State = "processing"
	StateDone       State = "done"
)

type Tray

type Tray struct {
	OnQuit     func()
	OnSettings func()
	OnFeedback func()
	// contains filtered or unexported fields
}

Tray manages the Wails v3 native system tray.

func New

func New(app *application.App, onQuit, onSettings func()) *Tray

New creates a system tray with menu and icons.

func (*Tray) SetState

func (t *Tray) SetState(state State)

SetState updates the tray tooltip to reflect the current state.

func (*Tray) SetWakeListening added in v0.34.9

func (t *Tray) SetWakeListening(listening bool)

SetWakeListening flips the always-on wake-word indicator. Called by the Device-Target whenever the wake runtime starts or stops so the user always knows when the mic is open for wake detection (privacy contract).

Jump to

Keyboard shortcuts

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