开发者

Background for Mac OS X app and other elements like NSButton, NSTabView

开发者 https://www.devze.com 2023-03-04 13:06 出处:网络
I changed the background color for my app, but other elements keep the same background color. Looks like I missed some easy configu开发者_如何学运维ration, bsc for NSTabViewItems item colors is deprec

I changed the background color for my app, but other elements keep the same background color. Looks like I missed some easy configu开发者_如何学运维ration, bsc for NSTabViewItems item colors is deprecated by docs, and using current theme...

Background for Mac OS X app and other elements like NSButton, NSTabView


You can't easily adjust the tint of the standard controls. You're going to have to subclass and override the drawing code for each of the elements.

Also, may I humbly suggest that you leave it the default color?


U may use Core Animation layer in IB. Choose your object (for example button), open the view effects inspector (⎇⌘8), set checkbox with your object, add "content filters" color monochrome and set color! That is all!

0

精彩评论

暂无评论...
验证码 换一张
取 消