V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
fisheva
V2EX  ›  macOS

MacOS Mojave 能否单独设置菜单栏为暗色模式?

  •  
  •   fisheva · 2018-10-03 10:13:30 +08:00 · 3833 次点击
    这是一个创建于 2004 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://zhuanlan.zhihu.com/p/45726724 这篇文章设置了菜单栏和 Dock 栏为暗色模式, Finder 为浅色模式, 这说明 MacOS Mojave 的暗 /浅模式是可以分模块的。我想设置成 Dock 和 Finder 为浅色模式, 菜单栏为暗色模式, 知道命令的大佬分享下? 先行谢过!

    8 条回复    2018-10-03 17:50:19 +08:00
    ThinkMan
        1
    ThinkMan  
       2018-10-03 10:41:16 +08:00 via iPhone
    Mark,同求
    nyanyh
        2
    nyanyh  
       2018-10-03 11:04:27 +08:00
    defaults write com.apple.Finder NSRequiresAquaSystemAppearance -bool Yes

    nyanyh
        3
    nyanyh  
       2018-10-03 11:07:35 +08:00
    com.apple.Dock 用这个设置无效,可能是不遵循单独设置
    yggd
        4
    yggd  
       2018-10-03 12:21:43 +08:00
    NX15
        5
    NX15  
       2018-10-03 13:59:06 +08:00
    fisheva
        6
    fisheva  
    OP
       2018-10-03 16:59:45 +08:00
    @yggd @NX15 你们发的文章和我发的其实是一样的, 都是设置菜单栏和 Dock 一起变黑。
    fisheva
        7
    fisheva  
    OP
       2018-10-03 17:01:37 +08:00
    @nyanyh 这个 FBI WARNING 窗口是怎么调出来的? 另外问下 V2EX 怎么发图片?
    nyanyh
        8
    nyanyh  
       2018-10-03 17:50:19 +08:00
    @fisheva 图片上传到 https://imgur.com
    FBI Warning 是自己输出的字符串,放到~/.zshrc

    ((TITLE_POSITION=$COLUMNS/2))
    ((TEXT_POSITION=$TITLE_POSITION/2))

    FBI_TITLE="$(tput setab 1)FBI WARNING$(tput sgr0)"
    printf "%*s\n" $(((${#title}+$COLUMNS)/2+17)) "$FBI_TITLE"
    FBI_WARNING_TEXT="Federal Law provides severe civil and criminal penalties for
    the unauthorized reproduction, distribution, or exhibition of
    copyrighted motion pictures (Title 17, United States Code,
    Sections 501 and 508). The Federal Bureau of Investigation
    investigates allegations of criminal copyright infringement."
    echo $FBI_WARNING_TEXT | fmt -c -w $COLUMNS
    echo "(Title 17, United States Code, Section 506)." | fmt -c -w $COLUMNS
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2786 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:52 · PVG 20:52 · LAX 05:52 · JFK 08:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.