Changing the color of NSProgressIndicator?

前端 未结 5 932
终归单人心
终归单人心 2020-12-17 21:12

What is the best way to change the color of NSProgressIndicator, is there an easier way than just to subclass it and then draw the whole component by myself?

Basical

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 21:55

    For Swift the method name is controlTint.

    progressIndicator = NSProgressIndicator(frame: .......
    progressIndicator.controlTint = .blueControlTint
    

提交回复
热议问题