-
Notifications
You must be signed in to change notification settings - Fork 121
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
How can I help? #192
Comments
Thanks for your interest. I would encourage you to join the Zulip at https://xi.zulipchat.com. You would be welcome to join the office hours, which happen weekly. Details can be found in the This repository is in an intermediate state - as you noted, the move to masonry is planned, and the work towards that is in-progress (see #masonry > Porting Masonry to Vello). Button is unable to use a borrowed value, because there are always two In terms of embedding a widget within a button, which I think is what you're asking? I think background colour is not in style, because
I'm not clear where the sentence fragment is leading here. I think we're still evaluating options for layout, but Taffy is the most likely candidate. However, I don't think we want to force every widget to use it, if possible. GPUI's giant style struct might not line up very well with the incremental updates Xilem is aiming to use, but I haven't dug into it very far. I'm not sure how pointer events handled. |
Thanks for the info! May I ask why generics are used instead of type erasure? Won't it increase compile times? |
Not necessarily. In general it's often the case though. It's probably weighing between advantages of static analysis and slightly faster compile times. From my experience it's not too bad when avoiding issues like rust-lang/rust#105900, I think e.g. chumsky and warp suffers from that. IMO the advantage of static analysis is a better trade-off though, since incremental compilation already makes this quite bearable (as I think hot-reloading is the main motivation to keep compile-times low). Also since the reactive layer (
The more I think about it, the more I'm inclined towards using ECS for style attributes (and will probably start some experimentation on that soon with Anyway OT, this should probably continue on zulip... |
This issue isn't tracking anything actionable, so I'm going to close it. |
https://linebender.org/blog/xilem-2024/
What state is this repo in right now?
First thing I found while skimming through the code is that Button uses a String.
&'static str
?dyn Trait
?dyn Trait
in a library-provided type?div
element along with a large styling system and shared/generic interactive code):xilem/src/view/taffy_layout.rs
Lines 128 to 136 in 072358e
Why isn't the background color in style?
Why isn't taffy a central part of Xilem? Seems like
For styles in general, I recommend y'all to check out GPUI (apologies for the screenshots but gpui doesn't have a rustdoc anywhere on the internet)
How are pointer events handled? Binary search? Loop over each leaf node? Loop over every node in the tree? Do they work with overlapping elements like modals, dropdowns, etc.?
https://github.com/linebender/rfcs/blob/main/rfcs/0001-masonry-backend.md
Has the work on this begun?
The text was updated successfully, but these errors were encountered: