Skip to content

fix: keep context menu colors in sync when the theme changes - #426

Merged
AmyrAhmady merged 1 commit into
openmultiplayer:masterfrom
LopezDev7:fix/context-menu-theme
Aug 16, 2026
Merged

fix: keep context menu colors in sync when the theme changes#426
AmyrAhmady merged 1 commit into
openmultiplayer:masterfrom
LopezDev7:fix/context-menu-theme

Conversation

@LopezDev7

@LopezDev7 LopezDev7 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #99

The context menu keeps the button background colors in React state, set once when it mounts from the current theme. If you switch between night/day while the menu is closed, those stay with the old theme's color, so next time you open it the buttons show the wrong one. I added a small effect that re-syncs them whenever the theme changes.

@AmyrAhmady
AmyrAhmady merged commit 56ce787 into openmultiplayer:master Aug 16, 2026
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.

right-click opens an ugly menu after changing night-day theme

2 participants