隐约雷鸣 阴霾天空 但盼风雨来 能留你在此

隐约雷鸣 阴霾天空 即使天无雨 我亦留此地

为macOS Mojave从新添加暗黑dock栏和暗黑状态栏

《为macOS Mojave从新添加暗黑dock栏和暗黑状态栏》
事例图片

原文链接:https://www.tekrevue.com/tip/only-dark-menu-bar-dock-mojave/

How to Use Only a Dark Menu Bar and Dock in macOS Mojave

By Jim Tanous on September 24, 2018 at 3:40 AM • @mggjim

Back in 2014 with the release of Mac OS X Yosemite, Apple introduced a visual option to the operating system called Dark Menu Bar and Dock. Enabled via System Preferences, this option, as its name describes, turned both the menu bar at the top of the screen and the Dock from the traditional OS X white/light gray to black/dark gray.

《为macOS Mojave从新添加暗黑dock栏和暗黑状态栏》
macOS High Sierra and earlier let you use only a dark menu bar and Dock.

The option wasn’t a full-blown “dark mode” that many users were hoping for, but it added a nice bit of contrast to some users’ desktops. Now with the release of macOS Mojave, however, Apple has introduced a full-blown dark mode, but in so doing it removed the old option to only use a dark menu bar and Dock.

《为macOS Mojave从新添加暗黑dock栏和暗黑状态栏》
In macOS Mojave, the new dark mode changes everything without the ability to limit it to just the menu bar and Dock.

This is an issue for some users because Mojave’s dark theme, while well-designed, may be a little bit too dark for some users. With Mojave dark theme enabled, most application windows for Apple’s own software as well as many third party apps are drenched in black and dark gray tones, presenting a visual style that some users may not like. For many users, including us, having only the dark menu bar and Dock was the perfect balance in terms of visual style and feel.

You can always revert to the more familiar “light theme,” but that makes everything “light” too, including the menu bar and Dock. There’s no option currently in System Preferences to recreate the old style with only a dark menu bar and Dock. But, thankfully, a Terminal command has come to the rescue.

Use Only Dark Menu Bar and Dock in Mojave

  1. Save any open work and close any open apps. Then, if necessary, head to System Preferences > General and select Light for Appearance.
  2. Launch Terminal (located in /Applications/Utilities) and enter the following command:

defaults write -g NSRequiresAquaSystemAppearance -bool Yes

  1. 这段我翻译一下,唯一的操作就在这里,先打开设置,选择通用,选择明亮模式,之后打开终端,输入以下命令:
  2. 之后注销从新登录即可

defaults write -g NSRequiresAquaSystemAppearance -bool Yes

Log out of your user account and then log back in. Now, return to System Preferences > General and select Dark for Appearance. You’ll see your menu bar and Dock switch to the Mojave Dark Mode, but everything else should stay in the traditional Light mode.

《为macOS Mojave从新添加暗黑dock栏和暗黑状态栏》
A quick Terminal command restores the dark menu bar and Dock only look in Mojave.

Revert to Full Mojave Dark Mode

If you’ve used the Terminal command above to achieve dark mode for only the menu bar and Dock and later want to use the full Mojave dark mode again, you can revert the change with another Terminal command.

Just repeat the steps above, but this time use the following command instead:

After entering the command, log out and then back in. Now, when you select the Dark mode in System Preferences, everything will switch over.

Want news and tips from TekRevue delivered directly to your inbox? Sign up for the TekRevue Weekly Digest using the box below. Get tips, reviews, news, and giveaways reserved exclusively for subscribers.

点赞

可以不需要填写邮箱和昵称直接评论,评论将在审核后通过

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据