NSTextField over wrapped NSVisualEffectView looks blurry / bold

I use NSVisualEffectViewCocoa in my application. My problem is that the text in the text box above the visual representation looks slightly bold / blurry if the visual effect itself is wrapped in another one NSView(see Label No. 3 in the screenshot below).

My view hierarchy is as follows:

- Window Content View
    - NSView
        - NSVisualEffectView
    - NSTextField (placed so that it shows above the visual effect view)

Or as a screenshot:

View hierarchy

This is what the window looks like:

Window with a problem

Notice how the third label looks bold? This is what is above the view that wraps the visual effect.

I tried to override allowsVibrancyto return false in the text box, but that didn't work.

Why do I need this location in the first place:

. , . (, ).

+4

Source: https://habr.com/ru/post/1687728/


All Articles