Gnome),我希望它是全黑的并且理想。作为参考,我拿了一台 Ubuntu20 服务器并安装openbox在上面。OpenBox我通过编辑配置隐藏了所有应用程序的标题栏/etc/xdg/openbox/rc.xml并添加了
<application class="*">
<decor>no</decor>
<maximized>false</maximized>
</application>
</applications>
Run Code Online (Sandbox Code Playgroud)
这样它将隐藏所有应用程序的标题栏。另外,我也能够实现我的要求。下图所示为示例。

我也想在 Gnome 桌面上执行相同的操作,但我不知道要编辑哪个配置文件。目前,我的Gnome看起来像这样

感谢您对以下内容的任何帮助。
如何确定JavaFX中的阶段/窗口插入?在Swing中,我可以简单地写:
JFrame frame = new JFrame();
Insets insets = frame.getInsets();
Run Code Online (Sandbox Code Playgroud)
在JavaFX中获得边框大小和窗口标题栏的等价物是什么?
setSystemUiVisibility并View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR已弃用。
这相当于:
View decor = getWindow().getDecorView();
decor.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
Run Code Online (Sandbox Code Playgroud)
和这个:
decor.setSystemUiVisibility(0);
Run Code Online (Sandbox Code Playgroud)
我试过了APPEARANCE_LIGHT_NAVIGATION_BARS,WindowInsetsController但我不知道如何把它放在一起。
我遇到的最接近的例子是这样的:
我们在程序中创建了一些自定义"窗口",当VisualStyles启用时,我们可以找到窗口的每个元素及其大小,并使用相应的渲染器自行绘制,包括最小化和关闭按钮.
我们想在VisualStyles禁用时做同样的事情并且当前绘制我们自己的窗口,但它们非常难看.在WinForms C#中是否可以绘制Windows经典风格的窗口?我发现了ClassicBorderDecorator它,但是它适用于WPF.
或者,如果不这样做,我们怎样才能得到我们以下列方式做的窗饰的像素大小:
// Get the height of the window caption.
if (SetRenderer(windowElements["windowCaption"]))
{
captionHeight = renderer.GetPartSize(graphics.Graphics, ThemeSizeType.True).Height;
}
// Get the thickness of the left, bottom,
// and right window frame.
if (SetRenderer(windowElements["windowLeft"]))
{
frameThickness = renderer.GetPartSize(graphics.Graphics, ThemeSizeType.True).Width;
}
Run Code Online (Sandbox Code Playgroud) 在3.16之前,很容易从最大化窗口中删除窗口标题 - 只需编辑metacity-theme.xml文件.但是,3.16正在使用客户端装饰,而metacity无法控制窗口装饰.是否有另一种隐藏窗口标题的方法,或者至少使它们更小?