在Mac OS X中修改窗口按钮颜色 [英] Modifying Window Button Colors in Mac OS X

查看:495
本文介绍了在Mac OS X中修改窗口按钮颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



以下是我所说的按钮:





对于红色/绿色的盲人,这些颜色可能会令人讨厌。我希望他们选择用于交通灯的绿色的实际蓝绿色,而不是蒲草绿色。



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

解决方案

好吧,经过漫长而看似无尽的研究周期之后,我找到了窗口按钮的存储位置。它们在 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources / ArtFile.bin 文件中c $ c>。



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





这是进程提取并然后重建资源,如MacThemes论坛上由名为 toutheme


For ArtFile.bin - Lion


$ b b


  • 在TheFolder上复制Lion ArtFile.bin(/System/Library/PrivateFrameworks/CoreUI.framework/Resources)和artFileTool。



  • 终端




    • 启动终端,输入cd space+(拖动终端窗口上的TheFolder)。输入。



    解码



    要解码ArtFile.bin并编译文件夹资源断开连接分类:




    • ./ artFileTool -d ArtFile .bin ResourcesDisconnectedClassified



      - 或 -




    要解码ArtFile.bin并编译一个名为Connected Images的文件夹:




    • ./ artFileTool -d -c ArtFile.bin NamedConnectedImages





    您的文件与PhotoShop,例如...



    编码



    资源已断开分类:




    • ./ artFileTool -e ResourcesDisconnectedClassified ArtFile.bin ArtFile.new.bin



      - 或 -




    重新编码命名的连接图片:




    • ./ 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






    对于ArtFile200.bin(仅限Lion):




    • 创建新文件夹:TheFolder

    • 复制Lion ArtFile200.bin(/ System / Library / PrivateFrameworks / CoreUI.framework / Resources)和theFolder上的artFileTool。

    • 启动终端,输入cd+space+(拖动终端窗口上的文件夹)。键入enter。



    解码




    • ./ artFileTool -d ArtFile200.bin ResourcesDisconnectedClassified

    • ./ artFileTool -d -c ArtFile200.bin NamedConnectedImages



    编码




    • ./ artFileTool -e ResourcesDisconnectedClassified ArtFile200.bin ArtFile200.new.bin

    • ./ artFileTool -e -c NamedConnectedImages ArtFile200.bin ArtFile200.new.bin


    • 确保检查新创建的文件的大小。 (4.0-5.2 mb)


    • 将ArtFile.new.bin重命名为ArtFile.bin,并替换CoreUI.framework目录中的一个位置

    • 退出


    我希望这能帮助任何一个像我一样沮丧的人它是发现有关OS X的内部工作原理的基本信息。


    How can I modify the red/yellow/green window buttons for close/minimize/zoom in Mac OS X? There must be an editable resource or plist somewhere.

    Here are the buttons I'm talking about:

    For red/green colorblind individuals, those colors can be maddening. I wish they chose the actual bluish shade of green used in a traffic light instead of the puke grass green. That grassy green is indeterminable from the red.

    Changing the theme to graphite is a poor alternative, so any other method is much preferred.

    解决方案

    Okay, after a long and seemingly endless research cycle, I've located where the window buttons are stored. They're in a file called ArtFile.bin in /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/.

    Also, a guy named Alex Zielenski with the help of Indragie Karunaratne created a utility named artFileTool to get to its contents. The second link is the code repository for the utility.

    Here's the process to extract and then rebuild the resource as described on the MacThemes forum by a user named 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

    I hope this helps anyone who got as frustrated as I did at how difficult it is discovering basic information about the inner workings of OS X.

    这篇关于在Mac OS X中修改窗口按钮颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆