Replies: 1 comment
-
|
Hi @ToQuery! I'm Dosu and I’m helping the wails team. Wails doesn't currently provide built-in support for synchronizing dark/light themes across multiple windows. Theme management is focused on the main window, and there isn't a window manager or registry to broadcast theme changes to all windows out of the box. However, you can use the Wails event system as a workaround. Emit a custom event (for example, when the user changes the theme) from your backend, and have all window frontends listen for this event to update their theme accordingly. The event system is designed for this kind of cross-window communication and can be used to propagate theme changes—see the usage of the To implement this, maintain a central theme state in your backend, emit an event when it changes, and have each window listen and update its theme when the event fires. This approach should let you synchronize themes across all open windows. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It is currently not possible to synchronise.
Beta Was this translation helpful? Give feedback.
All reactions