You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package nova.monadic_sfx.ui
import scalafx.geometry.Insets import scalafx.scene.Scene import scalafx.scene.effect.DropShadow import scalafx.scene.layout.HBox import scalafx.scene.paint.Color._ import scalafx.scene.paint._ import scalafx.scene.text.Text import monix.eval.Coeval
class DefaultUI { val scene = new Scene { fill = Color.rgb(38, 38, 38) content = new HBox { padding = Insets(50, 80, 50, 80) children = Seq( new Text { text = "Scala" style = "-fx-font: normal bold 100pt sans-serif" fill = new LinearGradient(endX = 0, stops = Stops(Red, DarkRed)) }, new Text { text = "FX" style = "-fx-font: italic bold 100pt sans-serif" fill = new LinearGradient( endX = 0, stops = Stops(White, DarkGray) ) effect = new DropShadow { color = DarkGray radius = 15 spread = 0.25 } } ) } }
// val program = Coeval
// .suspend {
// Coeval(println("hello")) >>
// Coeval(println(Thread.currentThread().getName())) >>
// Coeval {
// stage = new PrimaryStage {
// // initStyle(StageStyle.Unified)
// title = "ScalaFX Hello World"
// scene = scn
// }
// }
// }
}
|