gnustep/libs-gui

NSCircularBezelStyle should cut text

optimisme opened this issue · 5 comments

NSCircularBezelStyle should cut text if necessary

The image on the left shows 'GNUStep' interpretation of the circular bezel style with the text 'Circular' but the image on the right is the desired visualization only showing 'Ci'

Screenshot 2023-12-22 at 11 45 41
gcasa commented

GNUstepCircularButton
The above is how the default theme draws it... while this is likely incorrect since it STRETCHES the circle I am not sure where the behavior you're seeing is coming from.

The image on the left is NOT GNUstep or it is at the very least a THEME on GNUstep. Either way, and I asked this before, what theme or OS are you using to produce the images you're presenting? This is not a denial of any issue on our part... merely a request for complete information.

gcasa commented

Please help me understand.... the reason I am asking is that it would be helpful to load the theme you're using and see precisely where either GS or the theme are going wrong. Thx

gcasa commented

Also, can you attach a test program that illustrates what you're seeing above. (hopefully the one you're using)

In my image, the left one (the wrong one) comes from this theme (in development)
https://github.com/optimisme/GNUStep-Theme
the right image comres from the same application rendered by macOS

This is rather an issue in your own theme. The code there does not inset the frame of the menu item cell to the frame left inside of the circle. Please have a look at the code inside of GSThemeDrawing.m in GNUstep. There you can see how the variable frame gets adjusted.
I will close this issue as it is not caused by GNUstep itself.