-
Notifications
You must be signed in to change notification settings - Fork 326
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
"+" icon in List Editor should be finished, as it is easy now to confuse it with a mouse cursor. #6517
Comments
This is happening also on Windows |
It's quite easy to reproduce - add a |
I don't think it makes sense to bisect it, it is rather clear that it came together with vector editor, and we don't want to rollback any of the related PRs anyway. So I'm removing regression label. |
This is not a cursor duplication. The circle you see on the node is something we did not finish - it would be a "+" icon telling you that you can add new items there, it is not a cursor. It is displayed on empty vector editor. We need to finish it and display |
As #6540 removes the icon for some time (until it will be restored when implementing the design), I think the task is no longer valid. For future reference, the shape definition is something along: mod add_element_icon {
use super::*;
ensogl_core::shape! {
(style: Style, color_rgba: Vector4) {
let size = Var::canvas_size();
let radius = Min::min(size.x(),size.y()) / 2.0;
let circle = Circle(&radius);
let bg = circle.fill(INVISIBLE_HOVER_COLOR);
let angle= Radians::from(90.0.degrees());
let bar_length= &radius * 5.0 / 4.0;
let bar_width= &bar_length / 5.0;
#[allow(clippy::disallowed_names)] // The `bar` name here is totally legit.
let bar= Rect((bar_length, &bar_width));
let plus = bar.rotate(angle) + bar;
let shape= circle - plus;
shape.fill(color_rgba);
(shape + bg).into()
}
}
} May be further improved by taking plus size and color from styles. |
Discord username
No response
What type of issue is this?
Permanent – Occurring repeatably
Is this issue blocking you from using Enso?
Is this a regression?
What issue are you facing?
Add a new node, try to move it - the cursor pointer will be rendered on the node and never disappear
Expected behaviour
I should have just one cursor
How we can reproduce it?
No response
Screenshots or screencasts
No response
Enso Version
Nightly 03.05
Browser or standalone distribution
Standalone distribution
Browser Version or standalone distribution
Standalone
Operating System
MacOS
Operating System Version
No response
Hardware you are using
No response
The text was updated successfully, but these errors were encountered: