MacOS强制隐藏菜单栏和Dock

玩EU4的时候发现windowed fullscreen的实现出问题了,游戏没有新建一个工作区且菜单栏和Dock都没有隐藏,还好,可以通过修改info.plist的方式来强制隐藏,再自己手动把游戏拖入新建工作区,曲线实现全屏窗口

HOI4和Stellaris没发现此问题

首先要找到EU4的执行文件,Steam右键-本地文件-浏览本地文件

右键EU4.app,浏览包内容-Contents文件夹内就有info.plist了

按照字母排序,插入此键值(比如LSUIP***必须在JSUPK****的后面,在MSUIP***的前面)

<key>LSUIPresentationMode</key>
<integer>4</integer>

键值从0-4,数字越大,隐藏的元素越多

Value: 0
Normal mode. In this mode, all standard system UI elements are visible. This is the default value.
Value: 1
Content suppressed mode. In this mode, system UI elements in the content area of the screen are hidden. UI elements may show themselves automatically in response to mouse movements or other user activity. For example, the Dock may show itself when the mouse moves into the Dock’s auto-show region.
Value: 2
Content hidden mode. In this mode, system UI elements in the content area of the screen are hidden and do not automatically show themselves in response to mouse movements or user activity.
Value: 3
All hidden mode. In this mode, all UI elements are hidden, including the menu bar. Elements do not automatically show themselves in response to mouse movements or user activity.
Value: 4
All suppressed mode. In this mode, all UI elements are hidden, including the menu bar. UI elements may show themselves automatically in response to mouse movements or other user activity. This option is available only in Mac OS X 10.3 and later.

参考来源:https://apple.stackexchange.com/questions/5327/is-it-possible-to-hide-the-dock-on-a-per-application-basis

留下评论

电子邮件地址不会被公开。 必填项已用*标注