如何在Mac OS X中修改红色/黄色/绿色窗口按钮以关闭/最小化/缩放?某处必须有可编辑的资源或plist。
这是我正在谈论的按钮:
对于红色/绿色色盲的人,这些颜色可能令人发疯。我希望他们选择在交通信号灯中使用的实际蓝色而不是puke草绿色。草绿色是红色无法确定的。
将主题更改为 Graphite 是一种较差的选择,因此,任何其他方法都更可取。
最佳答案
好吧,经过一个漫长而看似无休止的研究周期,我找到了存储窗口按钮的位置。它们位于ArtFile.bin
中名为/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/
的文件中。
另外,一个名叫Alex Zielenski的人在Indragie Karunaratne的帮助下创建了一个名为artFileTool的实用程序来获取其内容。第二个链接是该实用程序的代码存储库。
这是process,用于提取并重新构建资源,如Macthemes论坛上所述,该用户名为toutheme:
For ArtFile.bin - Lion
Preparation
- Create new folder: TheFolder
- Copy the Lion ArtFile.bin (/System/Library/PrivateFrameworks/CoreUI.framework/Resources) and artFileTool on TheFolder.
Terminal
- Launch Terminal, type "cd" + "space" + (drag TheFolder on Terminal window). Type enter.
Decoding
To decode ArtFile.bin and compile a folder Resources Disconnected Classified:
./artFileTool -d ArtFile.bin ResourcesDisconnectedClassified
-- or --
To decode ArtFile.bin and compile a folder Named Connected Images:
- ./artFileTool -d -c ArtFile.bin NamedConnectedImages
Edition
Edit your files with PhotoShop, for example…
Encoding
To re-encode the Resources Disconnected Classified:
./artFileTool -e ResourcesDisconnectedClassified ArtFile.bin ArtFile.new.bin
-- or --
To re-encode the Named Connected Images:
- ./artFileTool -e -c NamedConnectedImages ArtFile.bin ArtFile.new.bin
For ArtFile.bin - Snow Leopard:
- ./artFileTool -d -l ArtFile.bin ResourcesDisconnectedClassified
- ./artFileTool -d -l -c ArtFile.bin NamedConnectedImages
- ./artFileTool -e -l ResourcesDisconnectedClassified ArtFile.bin ArtFile.new.bin
- ./artFileTool -e -l -c NamedConnectedImages ArtFile.bin ArtFile.new.bin
For ArtFile200.bin (Lion only):
- Create new folder: TheFolder
- Copy the Lion ArtFile200.bin (/System/Library/PrivateFrameworks/CoreUI.framework/Resources) and artFileTool on TheFolder.
- Launch Terminal, type "cd" + "space" + (drag TheFolder on Terminal window). Type enter.
Decoding
- ./artFileTool -d ArtFile200.bin ResourcesDisconnectedClassified
- ./artFileTool -d -c ArtFile200.bin NamedConnectedImages
Encoding
- ./artFileTool -e ResourcesDisconnectedClassified ArtFile200.bin ArtFile200.new.bin
./artFileTool -e -c NamedConnectedImages ArtFile200.bin ArtFile200.new.bin
Make sure to check the size of the newly created file. (4.0-5.2 mb)
- Rename ArtFile.new.bin to ArtFile.bin and replace the one location in the CoreUI.framework directory
- Logout
我希望这能帮助像我一样沮丧的任何人发现有关OS X内部工作的基本信息变得如此困难。
关于macos - 在Mac OS X中修改窗口按钮的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8170717/