A661_GP_RECTANGLE will be implemented by a Rectangle Node.
A661_LABEL1 for a StyleSet value of 1)Button implementing the A661_PUSH_BUTTON widget will be A661_PUSH_BUTTON_Style1 if the StyleSet of the PushButton has the value 1..A661_PUSH_BUTTON_Style1 { -fx-text-fill: black; -fx-font-weight: bold; -fx-padding: 3 6 6 6; -fx-background-radius: 10; -fx-background-color: linear-gradient(#00a2b1, #005058); }
Text Node has the same StyleClass as the parent Button, but the StyleClass of the Pane is not applied to the Button.
A661_EDIT_BOX_NUMERIC widget legend to be different from the color of the numeric value, but if you simply define the-fx-text-fill property in the CSS like that:A661_EDIT_BOX_NUMERIC_Style1 { -fx-text-fill: yellow; -fx-background-color: null; }Both the legend and the numeric value (which are implemented by different
Text children Nodes) will share the same color:
.A661_PUSH_BUTTON_Style1 { -fx-text-fill: blue; -fx-font-weight: regular; -fx-border-color: white; } .A661_PUSH_BUTTON_Style1:hover { -fx-text-fill: red; -fx-font-weight: bold; }
.legendInherit { -fx-text-fill: inherit; }Specifies that the text color of the Node with the "legendInherit" StyleClass will be identical to the text color of its parent Node.
.root{ -my-red: rgb(255,0,10); -my-amber: rgb(255,128,0); }These constants can be used whenever the associated colors are needed. For example:
-fx-stroke: -my-red;
@import "cssStyles.css"
Copyright 2016-2017 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v2 licence