From 778a05bdda15080494bc1c7eef6de0e9def2bfbe Mon Sep 17 00:00:00 2001 From: delvh Date: Sat, 6 Jun 2020 18:33:24 +0200 Subject: [PATCH] Improved visual appearance of ChatScene Additionally added minimum height of application and basic ContactSearchScene.fxml file. --- src/main/java/envoy/client/ui/Startup.java | 4 ++- src/main/resources/css/base.css | 5 +-- src/main/resources/fxml/ChatScene.fxml | 33 +++++++++++-------- .../resources/fxml/ContactSearchScene.fxml | 8 +++++ 4 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 src/main/resources/fxml/ContactSearchScene.fxml diff --git a/src/main/java/envoy/client/ui/Startup.java b/src/main/java/envoy/client/ui/Startup.java index acca4f1..fa9fac0 100644 --- a/src/main/java/envoy/client/ui/Startup.java +++ b/src/main/java/envoy/client/ui/Startup.java @@ -124,6 +124,8 @@ public final class Startup extends Application { sceneContext.load(SceneContext.SceneInfo.CHAT_SCENE); sceneContext.getController().initializeData(sceneContext, localDB, client, writeProxy); stage.setTitle("Envoy"); + stage.setMinHeight(400); + stage.setMinWidth(350); stage.getIcons().add(IconUtil.load("/icons/envoy_logo.png")); stage.show(); @@ -151,7 +153,7 @@ public final class Startup extends Application { /** * Starts the application. - * + * * @param args the command line arguments are processed by the * {@link ClientConfig} * @since Envoy Client v0.1-beta diff --git a/src/main/resources/css/base.css b/src/main/resources/css/base.css index be1533f..a2728c5 100644 --- a/src/main/resources/css/base.css +++ b/src/main/resources/css/base.css @@ -1,4 +1,5 @@ * { - /* -fx-font: 14.0pt "Serif"; */ - /* -fx-background-color:#000000; */ + /* -fx-font: 14.0pt "Serif"; + -fx-background-color:#000000; */ + -fx-opacity:1; } diff --git a/src/main/resources/fxml/ChatScene.fxml b/src/main/resources/fxml/ChatScene.fxml index 34e444a..fa234ca 100644 --- a/src/main/resources/fxml/ChatScene.fxml +++ b/src/main/resources/fxml/ChatScene.fxml @@ -1,5 +1,6 @@ + @@ -8,23 +9,29 @@ - + - - - + + + - - - + + + + - -