Skip to main content



      Home
Home » Modeling » Graphiti » [Mac] Rectangle of Shape is not filled if y < 0
[Mac] Rectangle of Shape is not filled if y < 0 [message #1873394] Fri, 13 December 2024 08:06 Go to next message
Eclipse UserFriend
Hi,

On MacOS, a Shape is not colored inside if its y is < 0.

The source of this problem is the implementation of GC#fillGradientRectangle in SWT for Mac, which only colors for y > 0.

I created an issue on the SWT GitHub yesterday, you can see a screenshot of the bug in Graphiti :
https://github.com/eclipse-platform/eclipse.platform.swt/issues/1652

Il submitted a pull request on SWT, but it doesn't seem to want to be accepted by the reviewer, because it causes a regression in Eclipse...

Do you think there is a way to work around this bug in Graphiti?

Thank you in advance !

---
Christophe
Re: [Mac] Rectangle of Shape is not filled if y < 0 [message #1873420 is a reply to message #1873394] Mon, 16 December 2024 08:46 Go to previous messageGo to next message
Eclipse UserFriend
I would definitely need some time to dig into the code, before I cannot say if a workaround would be feasible or not. But from the first impression, it appears somehow wrong to have some special Mac handling at that place.

- Michael
Re: [Mac] Rectangle of Shape is not filled if y < 0 [message #1873456 is a reply to message #1873420] Fri, 20 December 2024 08:50 Go to previous message
Eclipse UserFriend
I had a closer look at this, but because this functionality is used by Graphiti "under the hood" (not directly called but from GEF, SWT...) the only idea for a workaround would be to somehow transform the diagram coordinates so that y-coordinates never get negative. But that would be a bigger thing and not really suitable as workaround...

In case you have another idea, feel free to reach out again here.

- Michael
Previous Topic:Blurry context buttons on subsequent use
Goto Forum:
  


Current Time: Wed Mar 19 04:28:28 EDT 2025

Powered by FUDForum. Page generated in 0.04378 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top