Pablo-Gonzalez-Calderon / showybox-package

A Typst package for creating colorful and customizable boxes
MIT License
50 stars 5 forks source link

Problem using thick borders #3

Closed Pablo-Gonzalez-Calderon closed 1 year ago

Pablo-Gonzalez-Calderon commented 1 year ago

Since showybox passed from v0.2.0 to v0.2.1, now when the user chooses thick borders (like 15pt borders), the showybox's body looses their internal radius and, also, its interal inset. Compared with v0.2.0, this looks kind of rough.

Here's 15pt border width in v0.2.0

v0 2 0

And here's 15pt border width in v0.2.1 v0 2 1

Maybe this is just esthetic, and probably no one would use thicker borders than 5pt, but it would be nice to find a "beautiful way" to use thick borders

Pablo-Gonzalez-Calderon commented 1 year ago

Solved adding a fill property in the body, so inset is respected. Images of the solutioned version is below

image

Pablo-Gonzalez-Calderon commented 1 year ago

Changing that property makes 1pt borders look thiner than 1pt. So, in order to preserve coherence, this issue must be ignored.