如何更改JavaFX中的突出显示颜色?通常它是带有渐变的蓝色,但我想要绿色突出显示。我已经尝试过以下方法:
.root{
-fx-shadow-highlight-color: #CCFF99;
}
感谢帮助!
Look at 里海.css(JavaFX 2) 或摩德纳.css(JavaFX 8)
.root {
/* A bright blue for highlighting/accenting objects. For example: selected
* text; selected items in menus, lists, trees, and tables; progress bars;
* default buttons.
*/
-fx-accent: #0093ff;
/* A bright blue for the focus indicator of objects. Typically used as the
* first color in -fx-background-color for the "focused" pseudo-class. Also
* typically used with insets of -1.4 to provide a glowing effect.
*
* TODO: should this be derived from -fx-accent?
*/
-fx-focus-color: #0093ff;
}
根据用途更改这些颜色。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)