Skip to content

Show working color modifications in the frontend #164

Description

@TrueDoctor

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Good First IssueGood for newcomersWebInvolves web programming (TypeScript, Svelte, CSS)

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions