From bc59d0ccfd6a855155ac99a4fe8a1eff62c11d5c Mon Sep 17 00:00:00 2001 From: Michael-Jouanneau Date: Thu, 22 Dec 2016 11:24:07 +0100 Subject: [PATCH] Added things --- src/Launcher/Main.java | 8 ++++---- src/assets/style/default-theme.css | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Launcher/Main.java b/src/Launcher/Main.java index c228098..7202313 100644 --- a/src/Launcher/Main.java +++ b/src/Launcher/Main.java @@ -204,12 +204,12 @@ public class Main extends Application { dragbar_1 = (Pane) Tabs.load("instance_userinfo").lookup("#dragbar-1"); dragbar_1.setOnMousePressed(event4 -> { - xOffset = event.getSceneX(); - yOffset = event.getSceneY(); + xOffset = event4.getSceneX(); + yOffset = event4.getSceneY(); }); dragbar_1.setOnMouseDragged(event4 -> { - login.setX(event.getScreenX() - xOffset); - login.setY(event.getScreenY() - yOffset); + login.setX(event4.getScreenX() - xOffset); + login.setY(event4.getScreenY() - yOffset); }); minecraftlogin.lookup("#close-minecraft-login-window").setOnMouseClicked(event4 ->{ diff --git a/src/assets/style/default-theme.css b/src/assets/style/default-theme.css index fc3ee57..c5911be 100644 --- a/src/assets/style/default-theme.css +++ b/src/assets/style/default-theme.css @@ -146,12 +146,12 @@ -fx-border-color: white; -fx-border-width: 0px 0px 2px 0px; } -#minecraft-login { +#minecraft-login, #close-minecraft-login-window { -fx-background-color: #252525; -fx-background-radius: 0em; -fx-text-fill: white; } -#minecraft-login:hover { +#minecraft-login:hover, #close-minecraft-login-window:hover{ -fx-background-color: #bcbcbc; -fx-background-radius: 0em; -fx-text-fill: black;