vstgui icon indicating copy to clipboard operation
vstgui copied to clipboard

color None vs. transparent cross platform inconsistency

Open mxa opened this issue 3 years ago • 5 comments

While on Mac I can set a color (for ex. back-color or frame-color) to None and it will be handled like ~ TransparentCColor, when on Linux None will be like ~ BlackCColor

mxa avatar May 24 '21 11:05 mxa

Hi @mxa , I'm unable to reproduce this issue. Can you tell me in which view class you see this? I think the default behavior is to revert back to the default of the view class and not to transparent or black.

scheffle avatar May 31 '21 09:05 scheffle

@scheffle Do you see the inconsistencies in the grey bars in #207 ? That's a CTextLabel.

mxa avatar May 31 '21 09:05 mxa

@mxa OK I don't quite get it, #207 is about text rendering and this issue here is about color. So you have the issue with the color None with CTextLabel classes, correct?

scheffle avatar May 31 '21 09:05 scheffle

@scheffle #207 is about the text baseline. Building the example .uidesc to illustrate the issue, I was using CTextLabel objects just as a vertical reference. The white outlines of the grey containers are rendered on Linux, but not on Win or Mac. The screenshots accidentally expose this bug ( #205 ) or a related one. I think this is about the color None, it could additionally be a bug in the thickness 0 of the outline or the attribute to not show the outline. In any case something is wrong somewhere since it's platform inconsistent and while in #207 the problem seems to be on Windows, here it is on Linux.

mxa avatar May 31 '21 09:05 mxa

@scheffle please elaborate what's unclear.

mxa avatar Nov 15 '22 11:11 mxa