是否可以替换a的展开和折叠箭头TreeView
与定制Node
/ 形状(而不是image https://stackoverflow.com/q/15521806/1725096)?
The -fx-shape
箭头的 css 属性提供了基本的 SVG 形状。
.tree-cell .tree-disclosure-node .arrow {
-fx-background-color: -fx-mark-color;
-fx-padding: 0.333333em; /* 4 */
-fx-shape: "M 0 -4 L 8 0 L 0 4 z"; // <-- change this default triangle shape
}
.tree-cell:expanded .tree-disclosure-node .arrow {
-fx-rotate: 90; // maybe another svg shape instead
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)