NSSegmentedControl-放在模糊视图中时出现奇怪的外观 [英] NSSegmentedControl - Odd appearance when placed in blur view

查看:126
本文介绍了NSSegmentedControl-放在模糊视图中时出现奇怪的外观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有简单弹出窗口视图的macOS应用,并且其中放置了一个NSSegmentedControl.除了分段控件的奇怪外观之外,其他所有东西都可以正常工作.当放置在弹出视图中时,它具有怪异的方形背景.

I have a macOS app with a simple popover view and a NSSegmentedControl placed within it. Everything works fine, apart from the odd appearance of the segmented control. It has this weird square background when placed in the pop over view.

有什么办法可以摆脱这种情况?

Is there any way to get rid of this?

推荐答案

显然,NSSegmentedControl中的标签忽略了振动效果.

Apparently, labels inside NSSegmentedControl ignore vibrancy effect.

要修复此问题,请将NSSegmentedControl放在NSVisualEffectView内,并且material设置为popover.

To fix it, put NSSegmentedControl inside NSVisualEffectView with material set to popover.

这篇关于NSSegmentedControl-放在模糊视图中时出现奇怪的外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆