Skip to content

fix(desktop): apply the active palette to composer context menus - #1305

Merged
nixuuu merged 3 commits into
devfrom
fix/context-menu-theme
Nov 26, 2026
Merged

nixuuu merged 3 commits into
devfrom
fix/context-menu-theme

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Right-clicking a message field in Canopy Desktop opened an Electron menu styled with the system color scheme. The composer menu now uses the active Canopy palette in a separate Electron view owned by the desktop shell. Electron still determines which actions are available and runs its editing commands after the composer regains focus. The application page has no command interface to this view.

Fixes: #570

Thanks to @janek-normalnie for reporting the mismatch.

Verification

  • Local Linux, revision eb7bf49d8. Formatting and lint passed for all nine changed code files. The diff passed whitespace checks and contained only source and documentation. The existing context-menu template test passed all four cases and its inputs are unchanged.
  • Copy audit. Existing command labels carry over, and the accessible menu name is “Edit message.” Labels, keyboard hints and disabled controls are available as text or accessibility state.
  • CI covers typecheck, affected tests and builds. The workflows do not exercise the actual message menu in a graphical Electron session. Palette changes, focus restoration, clipboard operations and keyboard navigation in the new view remain unverified in the desktop runtime.

@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 11:02
@nixuuu
nixuuu disabled auto-merge November 26, 2026 11:03
@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 11:05
@nixuuu
nixuuu merged commit e8d2268 into dev Nov 26, 2026
46 of 48 checks passed
@nixuuu
nixuuu deleted the fix/context-menu-theme branch November 26, 2026 11:15
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.

1 participant