Center login logo

This commit is contained in:
2026-03-11 12:24:05 -06:00
parent fbec4fd1c1
commit fd212fe905

View File

@@ -8,76 +8,78 @@
<?import javafx.scene.effect.DropShadow?> <?import javafx.scene.effect.DropShadow?>
<?import javafx.scene.layout.StackPane?> <?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<VBox alignment="CENTER" prefHeight="420.0" prefWidth="380.0" spacing="16.0" <StackPane style="-fx-background-color: #2C3E50;"
style="-fx-background-color: #2C3E50;" xmlns="http://javafx.com/javafx/17"
xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1"
xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.petshopdesktop.controllers.LoginController">
fx:controller="org.example.petshopdesktop.controllers.LoginController">
<padding>
<Insets bottom="40.0" left="50.0" right="50.0" top="40.0" />
</padding>
<children> <children>
<StackPane fx:id="logoContainer" maxHeight="190.0" maxWidth="190.0" minHeight="190.0" minWidth="190.0" prefHeight="190.0" prefWidth="190.0"> <VBox alignment="CENTER" fillWidth="true" maxWidth="380.0" prefWidth="380.0" spacing="16.0">
<effect>
<DropShadow blurType="GAUSSIAN" color="0x0f172838" height="18.0" offsetY="6.0" radius="9.0" spread="0.16" width="18.0" />
</effect>
<VBox.margin>
<Insets bottom="35.0" />
</VBox.margin>
</StackPane>
<Label text="Username" textFill="#cccccc">
<font>
<Font name="System Bold" size="13.0" />
</font>
</Label>
<TextField fx:id="txtUsername" promptText="Enter username"
style="-fx-background-color: #3d5166; -fx-text-fill: white; -fx-prompt-text-fill: #888; -fx-background-radius: 8; -fx-border-width: 0;">
<padding> <padding>
<Insets bottom="10.0" left="12.0" right="12.0" top="10.0" /> <Insets bottom="40.0" left="50.0" right="50.0" top="40.0" />
</padding> </padding>
<font> <children>
<Font size="14.0" /> <StackPane fx:id="logoContainer" maxHeight="190.0" maxWidth="190.0" minHeight="190.0" minWidth="190.0" prefHeight="190.0" prefWidth="190.0">
</font> <effect>
</TextField> <DropShadow blurType="GAUSSIAN" color="0x0f172838" height="18.0" offsetY="6.0" radius="9.0" spread="0.16" width="18.0" />
</effect>
<VBox.margin>
<Insets bottom="35.0" />
</VBox.margin>
</StackPane>
<Label text="Password" textFill="#cccccc"> <Label text="Username" textFill="#cccccc">
<font> <font>
<Font name="System Bold" size="13.0" /> <Font name="System Bold" size="13.0" />
</font> </font>
</Label> </Label>
<PasswordField fx:id="txtPassword" promptText="Enter password" <TextField fx:id="txtUsername" maxWidth="280.0" prefWidth="280.0" promptText="Enter username"
style="-fx-background-color: #3d5166; -fx-text-fill: white; -fx-prompt-text-fill: #888; -fx-background-radius: 8; -fx-border-width: 0;"> style="-fx-background-color: #3d5166; -fx-text-fill: white; -fx-prompt-text-fill: #888; -fx-background-radius: 8; -fx-border-width: 0;">
<padding> <padding>
<Insets bottom="10.0" left="12.0" right="12.0" top="10.0" /> <Insets bottom="10.0" left="12.0" right="12.0" top="10.0" />
</padding> </padding>
<font> <font>
<Font size="14.0" /> <Font size="14.0" />
</font> </font>
</PasswordField> </TextField>
<Label fx:id="lblError" text="" textFill="#FF6B6B" wrapText="true"> <Label text="Password" textFill="#cccccc">
<font> <font>
<Font size="13.0" /> <Font name="System Bold" size="13.0" />
</font> </font>
</Label> </Label>
<PasswordField fx:id="txtPassword" maxWidth="280.0" prefWidth="280.0" promptText="Enter password"
style="-fx-background-color: #3d5166; -fx-text-fill: white; -fx-prompt-text-fill: #888; -fx-background-radius: 8; -fx-border-width: 0;">
<padding>
<Insets bottom="10.0" left="12.0" right="12.0" top="10.0" />
</padding>
<font>
<Font size="14.0" />
</font>
</PasswordField>
<Button fx:id="btnLogin" mnemonicParsing="false" onAction="#btnLoginClicked" <Label fx:id="lblError" maxWidth="280.0" text="" textFill="#FF6B6B" wrapText="true">
prefWidth="280.0" <font>
style="-fx-background-color: #FF6B6B; -fx-background-radius: 8; -fx-cursor: hand;" <Font size="13.0" />
text="Login" textFill="WHITE"> </font>
<font> </Label>
<Font name="System Bold" size="15.0" />
</font> <Button fx:id="btnLogin" maxWidth="280.0" mnemonicParsing="false" onAction="#btnLoginClicked"
<padding> prefWidth="280.0"
<Insets bottom="12.0" left="12.0" right="12.0" top="12.0" /> style="-fx-background-color: #FF6B6B; -fx-background-radius: 8; -fx-cursor: hand;"
</padding> text="Login" textFill="WHITE">
<VBox.margin> <font>
<Insets top="8.0" /> <Font name="System Bold" size="15.0" />
</VBox.margin> </font>
</Button> <padding>
<Insets bottom="12.0" left="12.0" right="12.0" top="12.0" />
</padding>
<VBox.margin>
<Insets top="8.0" />
</VBox.margin>
</Button>
</children>
</VBox>
</children> </children>
</VBox> </StackPane>