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

How to customize borders? #115

Open
snlucas opened this issue May 7, 2023 · 3 comments
Open

How to customize borders? #115

snlucas opened this issue May 7, 2023 · 3 comments

Comments

@snlucas
Copy link

snlucas commented May 7, 2023

Hi!

Is there a way to customize borders? Like instead of solid borders have dotted ones?

@leodevbro
Copy link
Owner

Interesting idea. I'll try to implement new setting for this. Maybe I will be able to do it in several days. (Or maybe today or tomorrow, if things go smooth).

@leodevbro
Copy link
Owner

I tried but unfortunately the current structure of Blockman makes it impossible (or too difficult) to change border style.

The blocks (div boxes) does not have actual borders. Borders are represented as border-box helpers like this:

const backgroundAndBorder =
        "background: " +
        inputBackgroundColor +
        " padding-box, " +
        inputBorderColor +
        "border-box;";

For the future, I am going to try to implement SVG rendering instead of div rendering. SVG is very flexible, but I'm not sure that VS Code extension environment supports it without a huge headache.

Like I said in this issue:
#116

@snlucas
Copy link
Author

snlucas commented Jul 25, 2023

I see.
Well, that's ok. Hope it can be done in the future.

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

No branches or pull requests

2 participants