有没有办法使TreeTableView中的"显示/隐藏列"按钮更大?
尝试以下 CSS:
.tree-table-view > .column-header-background > .show-hide-columns-button {
-fx-font-size: 24pt ;
}
.tree-table-view > .column-header-background > .show-hide-columns-button .context-menu {
-fx-font-size: null;
}
.tree-table-view .column-header,
.tree-table-view .filler,
.tree-table-view > .column-header-background > .show-hide-columns-button,
.tree-table-view:constrained-resize .filler {
-fx-size: 3em ;
}