答案 0 :(得分:1)
您可以修改appearance
的{{1}}属性。
Swift:
NSPopUpButton
目标-C:
myPopUpButton.appearance = NSAppearance(named: NSAppearanceNameVibrantDark)
myPopUpButton.appearance = [NSAppearance appearanceNamed:NSAppearanceNameVibrantDark];
属性可以应用于appearance
的任何子类(按钮,scrollViews等)和NSView
。