Sublime Text 4 隐藏标题栏 [英] Sublime Text 4 hide title bar

查看:87
本文介绍了Sublime Text 4 隐藏标题栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 linux 上运行 i3 窗口管理器,我的 sublime text 刚刚更新到版本 4.

I'm running i3 window manager on linux and my sublime text was just updated to version 4.

现在菜单上方有一个(相当大的)标题栏,显示了我无法删除的当前文件路径.我认为这是非标准的,因为由于 i3,我机器上的所有其他程序都没有显示标题栏.

Now there is a (rather obnoxiously large) title bar above the menu which shows the current file path that I cannot get rid of. I assume this is non standard since all other programs on my machine don't show a title bar due to i3.

无干扰模式和全屏模式会隐藏它,但这违背了平铺窗口管理器的目的.

Distraction free mode and fullscreen mode hide it, but that defeats the purpose of a tiling window manager.

如何禁用此功能?

我可以看到选项

"themed_title_bar": false,

但这不会隐藏标题栏.我没有看到像菜单或状态栏那样的切换选项.

but this doesn't hide the title bar. I don't see a toggle option either like the menu or status bars.

推荐答案

themed_title_bar 设置控制您使用的主题是否能够更改标题栏的颜色或不匹配主题(对于支持它的主题).在 Windows 上,这也具有隐藏菜单并将其放置在卷起的汉堡菜单"中的效果.在标题栏中.

The themed_title_bar setting controls whether the theme you're using has the ability to change the color of the title bar or not to match the theme (for themes that support it). On Windows this also has the effect of hiding the menu and placing it in a rolled up "hamburger menu" in the title bar.

在 Linux 上,还支持自定义标题栏,而不管它是否仅在检测到您正在使用适当的窗口管理器时才启用.如果它检测不正确(您想要该功能但未启用)或您想删除它因为您不想要它(这听起来像是您遇到了这里),您需要调整 this 的值设置:

On Linux, there is also support for custom title bars irrespective of that which only enables itself if it detects that you're using an appropriate window manager. In cases where it detects incorrectly (you want the feature but it's not enabled) or you want to remove it because you don't want it (which is sounds like you're running into here), you need to adjust the value of this setting:

    "gtk_client_side_window_decorations": true,

将其设置为 true 会打开该功能,而 false 会将其关闭;更改设置后必须重启 Sublime 才能生效.

Setting it to true turns on the feature, and false turns it off; you must restart Sublime after changing the setting for it to take effect.

这篇关于Sublime Text 4 隐藏标题栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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