haxeui / haxeui-heaps

MIT License
31 stars 12 forks source link

[Style] Fixed borders and background drawing for components #45

Closed tfabretti closed 1 year ago

tfabretti commented 1 year ago

I realized drawing semi-transparent borders and background was a bit broken so I decided to compare with the online builder and find ways to make the two platforms look similar. What I did :

Here is my test image on Heaps : image

And now the same test on the online builder : image

There is one major difference : the background is not drawn underneath the borders, on Heaps. It makes much more sense to me to do it this way, as you'll always have the same visual for two semi-transparent borders having the same settings, even if the background is different. It's also the reason I don't have the gradient bug on Heaps. The online builder does weird stuff with the gradient background being drawn underneath the borders, adding it to the color of each border's part.

The test buttons are :

If you think I missed test cases, tell me so I can check it works alright ! <3

ianharrigan commented 1 year ago

amazing, thanks loads for this!