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.

53 lines
1.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. package nova.monadic_sfx.ui
  2. import nova.monadic_sfx.util.controls.JFXSpinner
  3. import scalafx.geometry.Insets
  4. import scalafx.geometry.Pos
  5. import scalafx.scene.Scene
  6. import scalafx.scene.effect.DropShadow
  7. import scalafx.scene.layout.HBox
  8. import scalafx.scene.layout.VBox
  9. import scalafx.scene.paint.Color._
  10. import scalafx.scene.paint._
  11. import scalafx.scene.text.Text
  12. import monix.eval.Coeval
  13. object DefaultScene {
  14. def apply() =
  15. Coeval(new Scene {
  16. fill = Color.rgb(38, 38, 38)
  17. content = new VBox {
  18. alignment = Pos.Center
  19. padding = Insets(50, 80, 50, 80)
  20. children = Seq(
  21. new HBox {
  22. padding = Insets(50, 80, 50, 80)
  23. children = Seq(
  24. new Text {
  25. text = "Scala"
  26. style = "-fx-font: normal bold 100pt sans-serif"
  27. fill = new LinearGradient(endX = 0, stops = Stops(Red, DarkRed))
  28. },
  29. new Text {
  30. text = "FX"
  31. style = "-fx-font: italic bold 100pt sans-serif"
  32. fill = new LinearGradient(
  33. endX = 0,
  34. stops = Stops(White, DarkGray)
  35. )
  36. effect = new DropShadow {
  37. color = DarkGray
  38. radius = 15
  39. spread = 0.25
  40. }
  41. }
  42. )
  43. },
  44. new JFXSpinner {
  45. radius = 50
  46. // style = "-fx-text-fill: red"
  47. }
  48. )
  49. }
  50. })
  51. }