ADD::added style to button in register window
This commit is contained in:
@@ -143,6 +143,8 @@ public class UserController {
|
|||||||
Parent registerWindow = Application.load(this.getClass().getClassLoader()
|
Parent registerWindow = Application.load(this.getClass().getClassLoader()
|
||||||
.getResource("fxml/RegisterWindow.fxml"));
|
.getResource("fxml/RegisterWindow.fxml"));
|
||||||
Scene registerScene = new Scene(registerWindow);
|
Scene registerScene = new Scene(registerWindow);
|
||||||
|
registerScene.getStylesheets().add(this.getClass().getClassLoader()
|
||||||
|
.getResource("stylesheets/registerWindowStyle.css").toExternalForm());
|
||||||
Stage registerStage = new Stage();
|
Stage registerStage = new Stage();
|
||||||
registerStage.setScene(registerScene);
|
registerStage.setScene(registerScene);
|
||||||
registerStage.setTitle("Enter register credentials");
|
registerStage.setTitle("Enter register credentials");
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import java.lang.*?>
|
||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.*?>
|
||||||
<?import javafx.scene.image.*?>
|
<?import javafx.scene.image.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
@@ -24,7 +25,7 @@
|
|||||||
<Font size="13.0" />
|
<Font size="13.0" />
|
||||||
</font>
|
</font>
|
||||||
</TextField>
|
</TextField>
|
||||||
<Button fx:id="signUpButton" layoutX="115.0" layoutY="229.0" mnemonicParsing="false" onAction="#handleSignUpButton" style="-fx-background-color: #005e07;" text="Sign up!" textFill="#c4eec9">
|
<Button fx:id="signUpButton" layoutX="115.0" layoutY="229.0" mnemonicParsing="false" onAction="#handleSignUpButton" text="Sign up!" textFill="#c4eec9">
|
||||||
<font>
|
<font>
|
||||||
<Font name="Corbel Bold" size="14.0" />
|
<Font name="Corbel Bold" size="14.0" />
|
||||||
</font>
|
</font>
|
||||||
|
|||||||
@@ -2,4 +2,12 @@
|
|||||||
-fx-background-color: #005e07;
|
-fx-background-color: #005e07;
|
||||||
-fx-text-fill: #c4eec9;
|
-fx-text-fill: #c4eec9;
|
||||||
-fx-font-weight: bold;
|
-fx-font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:hover {
|
||||||
|
-fx-background-color: #027009;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:pressed {
|
||||||
|
-fx-background-color: #1ba023;
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
#signUpButton {
|
#signUpButton {
|
||||||
-fx-background-color: #005e07;
|
/*-fx-background-color: #005e07;*/
|
||||||
|
-fx-background-color: red;
|
||||||
-fx-text-fill: #c4eec9;
|
-fx-text-fill: #c4eec9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user