Allow host to customize the colors for user
See original GitHub issueRight 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:
- Created 3 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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/2922closed via https://github.com/excalidraw/excalidraw/pull/2943