How can I display the spinning NSProgressIndicator in a different color?

前端 未结 9 1713
温柔的废话
温柔的废话 2020-12-03 01:27

I am using a \"spinner\" NSProgressIndicator in my cocoa app:

I would like to display it in a different color so that it will show up well on a dark backgr

9条回答
  •  独厮守ぢ
    2020-12-03 01:42

    Swift 4 Solution

    guard let lighten = CIFilter(name: "CIColorControls") else { return }
    lighten.setDefaults()
    lighten.setValue(1, forKey: "inputBrightness")
    contentFilters = [lighten]
    

提交回复
热议问题