简体   繁体   English

如何在 JFXtras Labs 8.0 中自定义窗口?

[英]How to customize Window in JFXtras Labs 8.0?

我可以更改图标(关闭、最小化)背景,但我不知道如何更改图标大小和标题栏大小。

if you change the font size of the header, then the change is proportional to the size of icons and the titlebar itself.如果更改标题的字体大小,则更改与图标和标题栏本身的大小成正比。

css file: css文件:

.custom-window-titlebar {
    -fx-font: Tahoma;
    -fx-font-size: 60px;
    -fx-fill: rgba(255,255,255,50);
    -fx-alignment: center;
    }

and set style class:并设置样式类:

Window window = new Window("My MDI Window");
window.setPrefSize(1760, 770);
window.setTitleBarStyleClass("custom-window-titlebar");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM