-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The color of the existing layers changes after adding another layer #3656
Comments
If I may, I believe it is important to maintain consistency and predictability in the user interface. When the colors of existing layers change unexpectedly after adding a new layer, it can be confusing and disrupt the user's workflow. It would be more intuitive if the colors of the existing layers remained unchanged, and only the new layer was assigned a new color. This would help to reduce confusion and improve the overall user experience. |
The colors are by default assigned in a round-robin fashion going over the layers. The problem is probably that the order the layers are gone through is by default alphabetic - which may induce the changes in color you observe. Probably we can fix it in the code by going over the layers in "creation" order. |
Note that removing a layer would still cause "subsequent" layers to shift their colors. |
… layer - Sort layers by "creation order" to ensure colors do not shift when a new layer is added
…-of-the-existing-layers-changes-after-adding-another-layer #3656 - The color of the existing layers changes after adding another layer
* main: #3610 - Minimizing icon in document level feature is wrong after updating feature #3656 - The color of the existing layers changes after adding another layer #3679 - NullPointerException during export in WebAnno format #283 - Resize span #283 - Resize span #283 - Resize span #3675 - Clean up more brat code #3675 - Clean up more brat code #3675 - Clean up more brat code #3676 - Error when rejecting annotation suggestion #3675 - Clean up more brat code #1535 - Keyboard shortcuts do not work when focus is in certain editors #3571 - Update dependencies #3670 - Remove LIF support #3670 - Remove LIF support [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release inception-26.3 #3650 - Link label shows layer name instead of label
* main: (64 commits) #3610 - Minimizing icon in document level feature is wrong after updating feature #3656 - The color of the existing layers changes after adding another layer #3679 - NullPointerException during export in WebAnno format #283 - Resize span #283 - Resize span #283 - Resize span #3675 - Clean up more brat code #3675 - Clean up more brat code #3675 - Clean up more brat code #3676 - Error when rejecting annotation suggestion #3675 - Clean up more brat code #1535 - Keyboard shortcuts do not work when focus is in certain editors #3571 - Update dependencies #3670 - Remove LIF support #3670 - Remove LIF support #3668 - Disable tutorial for now #3664 - Avoid server-side HTML composition not using Wicket #3664 - Avoid server-side HTML composition not using Wicket #283 - Resize span #3660 - Option to disable span clipping ...
Describe the bug
Let's say I have two layers. One layer is shown in red and the other one in blue. Now I add another layer. The new layer gets a new color, BUT the colors of the two other layers change (for example, the first layer is now green, the second one is now red and the new layer is yellow).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Each time a layer is added, the colors of the previous layers remain the same.
Please complete the following information:
Thank you!
The text was updated successfully, but these errors were encountered: