-
Notifications
You must be signed in to change notification settings - Fork 34
Conversation
build/run.js
Outdated
// The following ignore list is the same as in `src/rust/.gitignore`, but are written with | ||
// qualified paths. This is a test if this will prevent some infinite-loop compilation with the | ||
// Cargo Watch tool. If so, an error should be reported to their bugtracker. | ||
let args = ['watch', '-i', 'src/rust/target', '-i', 'src/rust/ensogl/msdf-sys/msdfgen_wasm.js', '-i', 'src/rust/ide/parser/pkg/', '-s', `${target}`] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
long line. Does the prettier fix that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
src/js/lib/content/src/index.html
Outdated
@@ -33,6 +33,7 @@ | |||
<script type="module" src="/assets/run.js" defer></script> | |||
</head> | |||
<body> | |||
<div id="colors-debug" style="--graph_editor-node-background:rgb(255 0 0); --graph_editor-node-shadow:rgb(0 0 0); --graph_editor-node-shadow-exponent:2.0;"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for? Can you add a comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
src/js/lib/content/src/index.js
Outdated
// for (let name of logsFns) { | ||
// this.raw[name] = console[name] | ||
// console[name] = (...args) => { | ||
// this.handle(name,args) | ||
// } | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it commented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncommented
@@ -0,0 +1,102 @@ | |||
//! Example scene showing simple usage of a shape system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file name is complex_shape_system
, but the docs says about "simple usage". Who is right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file name.
InvExponent(f32), | ||
} | ||
InvExponent(exp:f32) inv_exponent, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
impl StyleWatchFrp { | ||
/// Constructor. | ||
#[allow(trivial_casts)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we allow trivial_casts here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise thsidoesnt compile let callback = Rc::new(RefCell::new(Box::new(||{}) as Box<dyn Fn()>));
And I don't see a way to make it nicer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So put that in the comment, so nobody will need to check that in the future :)
// TODO[WD]: This impl should be uncommented, and the `self.update()` line removed, | ||
// but now it causes project name to be red (to be investigated). | ||
// // First theme set can skip lazy change, as this is normally done on app startup. | ||
// // It will also make the startup faster, as the theme will not be updated on the next | ||
// // frame, which would make all shaders re-compile. | ||
// if self.initialized.get() { | ||
// self.initialized.set(true); | ||
// self.update() | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you investigate it in this PR? If not, please add an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -32,7 +32,7 @@ const ARROW_SIZE_Y : f32 = 20.0; | |||
const HOVER_EXTENSION : f32 = 10.0; | |||
|
|||
const MOUSE_OFFSET : f32 = 2.0; | |||
const NODE_PADDING : f32 = node::SHADOW_SIZE; | |||
const NODE_PADDING : f32 = 10.0; // node::SHADOW_SIZE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -132,7 +132,7 @@ ensogl::define_endpoints! { | |||
set_hover (bool), | |||
set_connected (bool,Option<Type>), | |||
set_parent_connected (bool), | |||
set_definition_type (Option<Type>), | |||
set_definition_type (Option<Type>), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its ok in code. Git shows that strangely
// FIXME[WD]: Think how to refactor it, as it needs to be done before model, as we do not | ||
// want shader recompilation. Model uses styles already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is important and should be fixed in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be done after all styles are connected and theme manager works 100% correct. Now its impossible to be designed correctly IMO.
Original commit: enso-org/ide@c8bfe42
Pull Request Description
This PR:
FrpStyleManager
which handles theme switching inside FRP networks.color::AnyFormat
that can contain colors in any available format and has associated nice parsing and pretty-print options.Checklist
Please include the following checklist in your PR:
CHANGELOG.md
was updated with the changes introduced in this PR.