package nova.monadic_sfx.ui.screens import scalafx.application.JFXApp.PrimaryStage import scalafx.scene.Parent import monix.eval.Task trait Screen { protected def appStage: PrimaryStage def changeRoot(root: Parent): Unit = { appStage.scene().setRoot(root) } def changeRootL(root: Parent): Task[Unit] = Task(changeRoot(root)) }