question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow host to customize the colors for user

See original GitHub issue

Right now we have a naive logic to determine the color to be shown for a remote collaborator.

We should also allow the host to pass the color for the user and those colors can be used to render the remote pointer/selection and avatar.

Usecase If the host has some logic of assigning the colors then this will help the host to use the same when using Excalidraw in collab mode as well

Solution Add an attribute color under the user prop which will help host to control it

user: { 
  name: string,
  color: { backgroud: string, stroke: string }
}

EDIT since we don’t use user prop anywhere so we can pass color in collaborator when updating scene

cc @dwelle

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ad1992commented, Feb 4, 2021

We could accept the avatarUrl as a prop and render it. Since this an addition of a new prop let’s track it as a separate issue. https://github.com/excalidraw/excalidraw/issues/2922

0reactions
ad1992commented, Feb 8, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing the current host session colors - IBM
To change the colors of screen elements, take the following steps: Either select the attribute on the left side of the window or...
Read more >
bash - Changing colors for user, host, directory information in ...
You can edit the settings editing the file: ~/.bashrc . Open the file: gedit ~/.bashrc . Look for the line with #force_color_prompt=yes and...
Read more >
Allow users to change the colors on web page
I am looking to display a color legend and allow the users to change the colors used. IS this possible, if so how?...
Read more >
Enable users to personalize their color experience in your app
Enable users to personalize their color experience in your app. bookmark_border ... Create your theme with tokens; Retain custom or brand colors.
Read more >
How to Customize Your VMware Host Client UI Theme
Customize the User Theme of the VMware Host Client ... click the colored box in front of each parameter, select a color, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found