Closed
Description
Currently ToolMessage::SwapColors and ToolMessage::ResetColors don't inform the frontend of their changes.
Todo:
- Add a FrontendMessage::UpdateWorkingColors(primary, secondary)
- emit that message in the tool_message_handler.rs
- add the message type to client/web/src/response-handlers.ts
- register a listener for the message in Document.vue
- modify the working colors accordingly
Test cases:
- use the keyboard shortcut X to check the colors have been swapped
- click the swap and reset buttons below your color picker swatches
Comeplexity: 1
Involves: Editor (Rust), Frontend (Javascript)