Java Reference
In-Depth Information
Text{content:"All objects styled with CSS"}
]
}
Stage {
title : "External CSS Example"
scene: Scene {
width: w
height: h
content: [ panel ]
stylesheets :["{__DIR__}main.css"]
}
}
2. Next, in a separate CSS file, we will declare the styles that are applied to the
application. You can find the full listing of the CSS file in ch04/source-code/src/
styling/main.css .
Scene {
fill:linear (0%, 0%) to (0%,100%)
stops (0.0, grey), (1.0, white)
}
Rectangle {
fill:yellow;
strokeWidth:2;
arcWidth:10;
arcHeight:10;
}
Circle {
fill:silver;
strokeWidth:2;
stroke:black
}
Text {
fill:blue;
font-family:"Arial,Sans";
font-size:12pt
}
#titleText {
fill:white;
 
Search WWH ::




Custom Search