Replies: 2 comments 2 replies
-
Hey, and thanks for the suggestions. Generally, I want to say that we try to reduce the number of dependencies and reduce bloat as much as possible. Both of these libraries duplicate work that is already being done in the library. The yoga library in particular makes little sense as we already have flexbox support. I took a closer look at LibSass. In my opinion, this is too big to include directly. If users want this feature they can integrate it on the client-side and hand over the compiled CSS to RmlUi. It doesn't really need any changes on the library side. With that said, I'm open to contributions that extend our own CSS parser and include some SCSS features that we find particularly useful. |
Beta Was this translation helpful? Give feedback.
-
Yes. I can totally understand your consideration. Fewer dependencies and lighter code is undoubtedly very good. But have you considered integrating external libraries directly in the form of copying source code? Based on this inference, we can actually include a lightweight library such as lua as a built-in function. This reduces external dependencies to a certain extent, and on the other hand provides more out-of-the-box functions |
Beta Was this translation helpful? Give feedback.
-
As a superset of CSS, scss is widely used in front-end development. Inheriting the scss compiler for the program can greatly bring the pleasure of the development phase. Although libscss development has stagnated, I think its existing functionality is sufficient.
Another problem is yoga. Yoga is a flexbox layout engine written by facebook. The performance and stability are also reliable. I think it seems better to use existing mature engine libraries.
I inherited the above two libraries into qt some time ago, and they performed well. But I don't know if rmlui will accept these changes. Both libraries above can be included directly as source code. The workload is not too big.
I want to hear your thoughts. Are these two jobs required? The first job is much simpler and can be completed quickly, but the second job needs to be fully tested.
Beta Was this translation helpful? Give feedback.
All reactions