-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added remember_password (still not working)
- Loading branch information
1 parent
665ba82
commit a1b779a
Showing
6 changed files
with
67 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
53 changes: 25 additions & 28 deletions
53
src/main/resources/team/elrant/bubbles/gui/views/LoginView.fxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.geometry.Insets?> | ||
<?import javafx.geometry.*?> | ||
<?import javafx.scene.control.*?> | ||
<?import javafx.scene.layout.AnchorPane?> | ||
<?import javafx.scene.layout.Pane?> | ||
<?import javafx.scene.layout.*?> | ||
<?import javafx.scene.text.*?> | ||
<Pane xmlns:fx="http://javafx.com/fxml/1" prefHeight="200.0" prefWidth="280.0" | ||
xmlns="http://javafx.com/javafx/17.0.2-ea" fx:controller="team.elrant.bubbles.gui.LoginController"> | ||
|
||
<Pane prefHeight="200.0" prefWidth="280.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="team.elrant.bubbles.gui.LoginController"> | ||
<AnchorPane layoutY="14.0" prefHeight="169.0" prefWidth="280.0"> | ||
<AnchorPane fx:id="formPane" layoutX="22.0" layoutY="55.0" prefHeight="79.0" prefWidth="243.0"> | ||
<Label alignment="BASELINE_LEFT" layoutY="4.0" text="Username"> | ||
<font> | ||
<Font name="Segoe UI Semibold" size="12.0"/> | ||
<Font name="Segoe UI Semibold" size="12.0" /> | ||
</font> | ||
</Label> | ||
<TextField fx:id="username_field" layoutX="78.0" layoutY="1.0" prefHeight="22.0" prefWidth="162.0" | ||
promptText="Username"> | ||
<TextField fx:id="username_field" layoutX="78.0" layoutY="1.0" prefHeight="22.0" prefWidth="162.0" promptText="Username"> | ||
<font> | ||
<Font name="Segoe UI" size="12.0"/> | ||
<Font name="Segoe UI" size="12.0" /> | ||
</font> | ||
</TextField> | ||
<Label alignment="BASELINE_LEFT" layoutX="1.0" layoutY="38.0" text="Password"> | ||
<font> | ||
<Font name="Segoe UI Semibold" size="12.0"/> | ||
<Font name="Segoe UI Semibold" size="12.0" /> | ||
</font> | ||
</Label> | ||
<PasswordField fx:id="password_field" layoutX="78.0" layoutY="35.0" prefHeight="22.0" prefWidth="162.0" | ||
promptText="********"> | ||
<PasswordField fx:id="password_field" layoutX="78.0" layoutY="35.0" prefHeight="22.0" prefWidth="162.0" promptText="********"> | ||
<font> | ||
<Font name="Segoe UI" size="12.0"/> | ||
<Font name="Segoe UI" size="12.0" /> | ||
</font> | ||
</PasswordField> | ||
<CheckBox fx:id="rememberPassword" layoutX="95.0" layoutY="64.0" mnemonicParsing="false" text="Remember password"> | ||
<font> | ||
<Font name="Segoe UI Light" size="12.0" /> | ||
</font> | ||
</CheckBox> | ||
</AnchorPane> | ||
<Label fx:id="loginLabel" alignment="BASELINE_CENTER" contentDisplay="CENTER" layoutX="-21.0" | ||
maxWidth="-Infinity" minWidth="-Infinity" prefHeight="39.0" prefWidth="304.0" text="Login" | ||
textAlignment="CENTER"> | ||
<Label fx:id="loginLabel" alignment="BASELINE_CENTER" contentDisplay="CENTER" layoutX="-21.0" maxWidth="-Infinity" minWidth="-Infinity" prefHeight="39.0" prefWidth="304.0" text="Login" textAlignment="CENTER"> | ||
<font> | ||
<Font name="Segoe UI Semibold" size="25.0"/> | ||
<Font name="Segoe UI Semibold" size="25.0" /> | ||
</font> | ||
</Label> | ||
<Button fx:id="submitButton" layoutX="208.0" layoutY="147.0" mnemonicParsing="false" | ||
onAction="#onSubmitButtonClick" text="Submit"> | ||
<Button fx:id="submitButton" layoutX="208.0" layoutY="147.0" mnemonicParsing="false" onAction="#onSubmitButtonClick" text="Submit"> | ||
<font> | ||
<Font name="Segoe UI" size="12.0"/> | ||
<Font name="Segoe UI" size="12.0" /> | ||
</font> | ||
</Button> | ||
<opaqueInsets> | ||
<Insets/> | ||
<Insets /> | ||
</opaqueInsets> | ||
</AnchorPane> | ||
<Label fx:id="failedLoginLabel" layoutX="36.0" layoutY="154.0" prefHeight="17.0" prefWidth="174.0" | ||
text="Wrong username or password!" textFill="#b50000" visible="false"> | ||
<Label fx:id="failedLoginLabel" layoutX="36.0" layoutY="154.0" prefHeight="17.0" prefWidth="174.0" text="Wrong username or password!" textFill="#b50000" visible="false"> | ||
<font> | ||
<Font name="Segoe UI Black" size="12.0"/> | ||
<Font name="Segoe UI Black" size="12.0" /> | ||
</font> | ||
</Label> | ||
<Label fx:id="successfulLoginLabel" layoutX="115.0" layoutY="154.0" text="Successful login!" textFill="#00bc00" | ||
visible="false"> | ||
<Label fx:id="successfulLoginLabel" layoutX="115.0" layoutY="154.0" text="Successful login!" textFill="#00bc00" visible="false"> | ||
<font> | ||
<Font name="Segoe UI Black" size="12.0"/> | ||
<Font name="Segoe UI Black" size="12.0" /> | ||
</font> | ||
</Label> | ||
<opaqueInsets> | ||
<Insets bottom="1.0" left="1.0" right="1.0" top="1.0"/> | ||
<Insets bottom="1.0" left="1.0" right="1.0" top="1.0" /> | ||
</opaqueInsets> | ||
</Pane> |
27 changes: 24 additions & 3 deletions
27
src/main/resources/team/elrant/bubbles/gui/views/SideView.fxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.*?> | ||
<?import javafx.scene.layout.*?> | ||
|
||
<?import javafx.scene.layout.AnchorPane?> | ||
<AnchorPane xmlns:fx="http://javafx.com/fxml/1" prefHeight="720.0" prefWidth="320.0" | ||
xmlns="http://javafx.com/javafx/17.0.2-ea" fx:controller="team.elrant.bubbles.gui.SideViewController"> | ||
|
||
<AnchorPane prefHeight="720.0" prefWidth="320.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="team.elrant.bubbles.gui.SideViewController"> | ||
<children> | ||
<MenuBar layoutY="2.0" prefHeight="25.0" prefWidth="320.0"> | ||
<menus> | ||
<Menu mnemonicParsing="false" text="File"> | ||
<items> | ||
<MenuItem mnemonicParsing="false" text="Close" /> | ||
</items> | ||
</Menu> | ||
<Menu mnemonicParsing="false" text="Edit"> | ||
<items> | ||
<MenuItem mnemonicParsing="false" text="Delete" /> | ||
</items> | ||
</Menu> | ||
<Menu mnemonicParsing="false" text="Help"> | ||
<items> | ||
<MenuItem mnemonicParsing="false" text="About" /> | ||
</items> | ||
</Menu> | ||
</menus> | ||
</MenuBar> | ||
</children> | ||
</AnchorPane> |