Skip to content

Conversation

@btexnic
Copy link

@btexnic btexnic commented Dec 24, 2025

Summary

This PR fixes issue #427 where the menu bar icon is not visible on macOS Sequoia 15.x / Darwin 26.x.

Changes

  • Modified app/modules/theme.js to explicitly set template mode on tray icon images using setTemplateImage(true)
  • This ensures proper rendering of the menu bar icon on newer macOS versions

Root Cause

The nativeImage.createFromPath() method was not explicitly declaring the image as a template image. On macOS Sequoia, this causes the icon to not display properly in the menu bar, even though the app is running and the image file is found.

Solution

By calling image.setTemplateImage(true) after creating the native image, we explicitly mark it as a template image. This follows Electron's best practices for menu bar icons and ensures compatibility with macOS Sequoia's menu bar rendering.

Testing

  • Tested on macOS Sequoia 26.1 (Build 25B78) with Apple Silicon
  • Menu bar icon now appears correctly and updates as expected
  • All battery functionality continues to work normally

Test Plan

  • Install and run the app in development mode
  • Verify menu bar icon appears
  • Verify icon updates based on battery percentage
  • Verify all battery management functionality works

Closes #427

🤖 Generated with Claude Code

…r#427)

Explicitly set template mode on tray icon images using setTemplateImage(true)
to ensure proper rendering on macOS Sequoia 15.x / Darwin 26.x. The nativeImage
created from path now explicitly declares itself as a template image, which is
required for proper menu bar icon display on newer macOS versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Menu bar icon missing on macOS Sequoia 26.1 with v1.3.2

1 participant