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.

52 lines
1.4 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
  1. package nova.monadic_sfx.ui
  2. import nova.monadic_sfx.implicits.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. object DefaultUI {
  13. val scene =
  14. new Scene {
  15. fill = Color.rgb(38, 38, 38)
  16. content = new VBox {
  17. alignment = Pos.Center
  18. padding = Insets(50, 80, 50, 80)
  19. children = Seq(
  20. new HBox {
  21. padding = Insets(50, 80, 50, 80)
  22. children = Seq(
  23. new Text {
  24. text = "Scala"
  25. style = "-fx-font: normal bold 100pt sans-serif"
  26. fill = new LinearGradient(endX = 0, stops = Stops(Red, DarkRed))
  27. },
  28. new Text {
  29. text = "FX"
  30. style = "-fx-font: italic bold 100pt sans-serif"
  31. fill = new LinearGradient(
  32. endX = 0,
  33. stops = Stops(White, DarkGray)
  34. )
  35. effect = new DropShadow {
  36. color = DarkGray
  37. radius = 15
  38. spread = 0.25
  39. }
  40. }
  41. )
  42. },
  43. new JFXSpinner {
  44. radius = 50
  45. // style = "-fx-text-fill: red"
  46. }
  47. )
  48. }
  49. }
  50. }