macos - 在Mac OS X中修改窗口按钮的颜色

标签 macos user-interface colors customization titlebar

如何在Mac OS X中修改红色/黄色/绿色窗口按钮以关闭/最小化/缩放?某处必须有可编辑的资源或plist。

这是我正在谈论的按钮:

对于红色/绿色色盲的人,这些颜色可能令人发疯。我希望他们选择在交通信号灯中使用的实际蓝色而不是puke草绿色。草绿色是红色无法确定的。

将主题更改为 Graphite 是一种较差的选择,因此,任何其他方法都更可取。

最佳答案

好吧,经过一个漫长而看似无休止的研究周期,我找到了存储窗口按钮的位置。它们位于ArtFile.bin中名为/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/的文件中。

另外,一个名叫Alex Zielenski的人在Indragie Karunaratne的帮助下创建了一个名为artFileTool的实用程序来获取其内容。第二个链接是该实用程序的代码存储库。

  • http://macthemes.net/forum/viewtopic.php?t=16810624
  • https://github.com/alexzielenski/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/

    相关文章:

    Java GUI JProgressBar 不绘画

    c++ - 用 C++ 创建 GUI

    css - 如何将 rgba 转换为透明度调整后的十六进制?

    svg - 如何在使用时更改SVG图案的颜色?

    ios - Podspec 验证错误 - 文件模式 : The spec is empty

    c++ - EXC_BAD_ACCESS 抛出异常

    macos - 如何在Mac上构建(OpenGL Engine Ogre)SDK?

    c++ - __LP64__ 在哪里为 OSX 10.6 上的 C++ 应用程序的默认构建定义?

    ios - iOS 应用程序从后台返回后卡住的原因是什么?

    html - 一个元素的多种颜色