From 640b2507eb759ec16ece10c1e40fe7fb457d0b3b Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Mon, 25 May 2020 23:14:06 +0530 Subject: [PATCH] updated UI --- build.sbt | 12 +- src/main/resources/fxml/Chat.fxml | 61 +-- src/main/resources/fxml/Login.fxml | 13 +- src/main/resources/fxml/MainView.fxml | 54 +-- src/main/resources/fxml/default.css | 29 -- src/main/resources/styles/chat.css | 173 ++++++++ src/main/resources/styles/default.css | 85 ++++ src/main/resources/styles/login.css | 5 + .../doge/chatto/ApplicationController.scala | 57 +-- .../doge/chatto/control/JFXSmoothScroll.java | 114 ++++++ .../wow/doge/chatto/control/MessageBox.scala | 10 + .../wow/doge/chatto/control/UserBox2.scala | 5 +- .../chatto/controller/ChatController.scala | 384 +++++++++++------- .../chatto/controller/LoginController.scala | 15 +- .../controller/MainViewController.scala | 19 +- .../controller/NavigationController.scala | 4 +- .../controller/WorkspaceController.scala | 2 +- .../chatto/service/CustomSerializer.scala | 69 ---- .../wow/doge/chatto/service/UserService.scala | 14 +- 19 files changed, 746 insertions(+), 379 deletions(-) delete mode 100644 src/main/resources/fxml/default.css create mode 100644 src/main/resources/styles/chat.css create mode 100644 src/main/resources/styles/default.css create mode 100644 src/main/resources/styles/login.css create mode 100644 src/main/scala/wow/doge/chatto/control/JFXSmoothScroll.java create mode 100644 src/main/scala/wow/doge/chatto/control/MessageBox.scala delete mode 100644 src/main/scala/wow/doge/chatto/service/CustomSerializer.scala diff --git a/build.sbt b/build.sbt index 0a4c549..ac2ba3a 100644 --- a/build.sbt +++ b/build.sbt @@ -45,13 +45,14 @@ libraryDependencies ++= Seq( "org.json4s" %% "json4s-jackson" % "3.6.8", "org.scala-lang.modules" %% "scala-async" % "0.10.0", "org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided, - // "org.kordamp.ikonli" %% "ikonli-javafx" % "11.4.0", - // "org.kordamp.ikonli" %% "ikonli-fontawesome-pack" % "11.4.0", - // "org.kordamp.ikonli" %% "ikonli-fontawesome5-pack" % "11.4.0", + "org.kordamp.ikonli" % "ikonli-javafx" % "11.4.0", + "org.kordamp.ikonli" % "ikonli-fontawesome-pack" % "11.4.0", + "org.kordamp.ikonli" % "ikonli-fontawesome5-pack" % "11.4.0", "org.jsoup" % "jsoup" % "1.13.1", "com.sandec" % "mdfx" % "0.1.6", "com.softwaremill.sttp.client" %% "async-http-client-backend-future" % "2.1.1", - "com.softwaremill.quicklens" %% "quicklens" % "1.5.0" + "com.softwaremill.quicklens" %% "quicklens" % "1.5.0", + "net.synedra" % "validatorfx" % "0.1.11" ) libraryDependencies += "org.asynchttpclient" % "async-http-client" % "2.12.1" libraryDependencies += "com.softwaremill.macwire" %% "macros" % "2.3.3" @@ -66,6 +67,9 @@ libraryDependencies += "org.kordamp.bootstrapfx" % "bootstrapfx-core" % "0.2.4" // https://mvnrepository.com/artifact/org.json4s/json4s-ext libraryDependencies += "org.json4s" %% "json4s-ext" % "3.6.8" +// https://mvnrepository.com/artifact/org.jsoup/jsoup +libraryDependencies += "org.jsoup" % "jsoup" % "1.13.1" + enablePlugins(BuildInfoPlugin) buildInfoPackage := "wow.doge.chatto" diff --git a/src/main/resources/fxml/Chat.fxml b/src/main/resources/fxml/Chat.fxml index 055cb68..ff5e755 100644 --- a/src/main/resources/fxml/Chat.fxml +++ b/src/main/resources/fxml/Chat.fxml @@ -1,49 +1,54 @@ - + - - - - - - - - - + + + + + + + + + + - + - + - +
- +
- + -
- - + +