Skip to content
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

Does RmlUI have plans to support dotte/dashed borders style? #625

Open
Shen9ke opened this issue Jun 28, 2024 · 2 comments
Open

Does RmlUI have plans to support dotte/dashed borders style? #625

Shen9ke opened this issue Jun 28, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Shen9ke
Copy link

Shen9ke commented Jun 28, 2024

As title, does RmlUi have plans to support dotte/dashed borders style?
If not, how can I implement this simply?

@mikke89 mikke89 added the enhancement New feature or request label Jun 29, 2024
@mikke89
Copy link
Owner

mikke89 commented Jun 29, 2024

We don't really have any plans for that, I haven't actually seen any requests for that before. Do you have some specific use cases in mind? To me, it feels like an inflexible tool from the old parts of the internet. We have decorator support such as ninepatch which in my opinion handles these sorts of designs in a much more flexible way. But perhaps it can be useful on some occasions.

To implement this, you can start with our ElementBackgroundBorder class and our MeshUtilities which generate the geometry for the border. Then you would also need to add support for parsing the property. For this, you can start with the StylesheetSpecification, and work from there.

@Shen9ke
Copy link
Author

Shen9ke commented Jun 30, 2024

As I mentioned in another issue, I am attempting to develop a rich text editor using RmlUi. I believe it is necessary to provide users with some dashed border controls or styles for article layout or beautification, such as the dashed border table, the selected state of a control, or other dashed border applications UI as show bleow. Can this be achieved well solely with ninePatch? Forgive me for not having tried it yet.

Perhaps it would be better to follow your advice and use custom elements, with MeshUtilities to generate the geometry for the border.

image
Selection
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants