ste*_*tro 7 css java javafx javafx-2
如何更改JavaFX中的突出显示颜色?通常它是渐变的蓝色,但我希望有一个绿色突出显示.我尝试过以下方法:
.root{
-fx-shadow-highlight-color: #CCFF99;
}
Run Code Online (Sandbox Code Playgroud)
感谢帮助!
Ulu*_*Biy 19
看看caspian.css(JavaFX 2)或者modena.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;
}
Run Code Online (Sandbox Code Playgroud)
根据用途改变这些颜色.
归档时间: |
|
查看次数: |
14405 次 |
最近记录: |