Skip to content

frontend: the tray icon through the platform facade (#873) - #2025

Merged
zackees merged 2 commits into
masterfrom
infra/873-tray
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/873-tray

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #873 (OBSBasic_SysTray, OBSBasic_Recording)

Moves the five __APPLE__ tray conditionals behind frontend/utility/platform.hpp:

Facade macOS Windows / Linux
GetPlatformTrayIcon(TrayIconState) (Idle/Active/Paused) obs_macos.svg, tray_active_macos.svg, obs_paused_macos.svg, as masks obs.png, tray_active.png, obs_paused.png
PlatformTrayActivationTogglesWindow() false: a click only opens the menu true
SetPlatformDockIconVisible(bool) EnableOSXDockIcon no-op

RED test_tray_icon_goes_through_the_facade fails on master. GREEN it passes, and ./lint is clean.

EnableOSXDockIcon is still called directly in OBSBasic_MainControls; that file is the next slice.

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Full run 40053223533: Windows x64/arm64, macOS arm64/x86_64, Ubuntu (OBS-Studio-Rust) and Flatpak all built successfully.

@zackees
zackees marked this pull request as ready for review October 24, 2026 02:32
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 80cafa0 Oct 24, 2026
66 checks passed
@zackees
zackees deleted the infra/873-tray branch October 26, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant