且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

xcode Interface Builder背景颜色首选项

更新时间:2023-12-03 21:09:34

我已经开始创建一个Xcode插件来改变故事板编辑器的背景颜色。您可以在 rpendleton / xcode-canvas-color 找到该来源。我已将其硬编码为浅灰色,如下面的屏幕截图所示,但这可以轻松更改。

I've gone ahead and created an Xcode plugin that changes the background color of the storyboard editor. You can find the source at rpendleton/xcode-canvas-color. I've hardcoded it to a light gray color, as shown in the screenshot below, but this can be changed easily.

(另外,我认为你不是'当我反编译Xcode时,后台视图的drawRect方法显式调用 [[NSColor whiteColor] set] 。)

(Also, I don't think you're missing a setting for it. When I decompiled Xcode, the drawRect method for the background view explicitly called [[NSColor whiteColor] set].)