Login remake final
This commit is contained in:
@@ -3,17 +3,13 @@
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.image.ImageView?>
|
||||
<?import java.net.URL?>
|
||||
|
||||
<StackPane xmlns="http://javafx.com/javafx/21"
|
||||
xmlns:fx="http://javafx.com/fxml/1"
|
||||
fx:controller="it.polimi.ingsw.gc14.View.GUI.LoginFXMLController"
|
||||
prefWidth="1280" prefHeight="720"
|
||||
style="-fx-background-color: #09060300;">
|
||||
style="-fx-background-color: #09060300;"
|
||||
stylesheets="@styles.css">
|
||||
|
||||
<stylesheets>
|
||||
<URL value="@styles.css" />
|
||||
</stylesheets>
|
||||
|
||||
<ImageView fx:id="backgroundImage" fitWidth="1920" fitHeight="1080" preserveRatio="false"/>
|
||||
|
||||
@@ -52,7 +48,7 @@
|
||||
|
||||
<!-- Title -->
|
||||
<Label text="MESOS"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 24; -fx-font-weight: bold;
|
||||
style="-fx-font-family: 'Cinzel Decorative'; -fx-font-size: 28; -fx-font-weight: bold;
|
||||
-fx-text-fill: #f4c05a;
|
||||
-fx-effect: dropshadow(gaussian, rgba(244,192,90,0.4), 28, 0, 0, 0);">
|
||||
<VBox.margin><Insets bottom="4"/></VBox.margin>
|
||||
@@ -66,12 +62,12 @@
|
||||
|
||||
<!-- Username -->
|
||||
<Label text="USERNAME"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 9; -fx-letter-spacing: 2;
|
||||
style="-fx-font-family: 'Cinzel'; -fx-font-size: 9; -fx-letter-spacing: 3;
|
||||
-fx-text-fill: rgba(244,192,90,0.7);">
|
||||
<VBox.margin><Insets bottom="6"/></VBox.margin>
|
||||
</Label>
|
||||
<TextField fx:id="campoNome" promptText="Enter your name"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 11;
|
||||
style="-fx-font-family: 'Cinzel'; -fx-font-size: 12;
|
||||
-fx-text-fill: #f0e0c0; -fx-prompt-text-fill: rgba(200,150,80,0.45);
|
||||
-fx-background-color: rgba(244,192,90,0.07);
|
||||
-fx-border-color: rgba(200,120,20,0.45); -fx-border-width: 0 0 1 0;
|
||||
@@ -82,12 +78,12 @@
|
||||
|
||||
<!-- Num players -->
|
||||
<Label text="NUMBER OF PLAYERS"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 9; -fx-letter-spacing: 2;
|
||||
style="-fx-font-family: 'Cinzel'; -fx-font-size: 9; -fx-letter-spacing: 3;
|
||||
-fx-text-fill: rgba(244,192,90,0.7);">
|
||||
<VBox.margin><Insets bottom="6"/></VBox.margin>
|
||||
</Label>
|
||||
<TextField fx:id="campoNumPlayers" promptText="2 – 5"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 11;
|
||||
style="-fx-font-family: 'Cinzel'; -fx-font-size: 12;
|
||||
-fx-text-fill: #f0e0c0; -fx-prompt-text-fill: rgba(200,150,80,0.45);
|
||||
-fx-background-color: rgba(244,192,90,0.07);
|
||||
-fx-border-color: rgba(200,120,20,0.45); -fx-border-width: 0 0 1 0;
|
||||
@@ -98,12 +94,12 @@
|
||||
|
||||
<!-- Server IP -->
|
||||
<Label text="SERVER IP"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 9; -fx-letter-spacing: 2;
|
||||
style="-fx-font-family: 'Cinzel'; -fx-font-size: 9; -fx-letter-spacing: 3;
|
||||
-fx-text-fill: rgba(244,192,90,0.7);">
|
||||
<VBox.margin><Insets bottom="6"/></VBox.margin>
|
||||
</Label>
|
||||
<TextField fx:id="campoIP" promptText="localhost"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 11;
|
||||
style="-fx-font-family: 'Cinzel'; -fx-font-size: 12;
|
||||
-fx-text-fill: #f0e0c0; -fx-prompt-text-fill: rgba(200,150,80,0.45);
|
||||
-fx-background-color: rgba(244,192,90,0.07);
|
||||
-fx-border-color: rgba(200,120,20,0.45); -fx-border-width: 0 0 1 0;
|
||||
@@ -114,7 +110,7 @@
|
||||
|
||||
<!-- Protocol toggle -->
|
||||
<Label text="PROTOCOL"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 9; -fx-letter-spacing: 2;
|
||||
style="-fx-font-family: 'Cinzel'; -fx-font-size: 9; -fx-letter-spacing: 3;
|
||||
-fx-text-fill: rgba(244,192,90,0.7);">
|
||||
<VBox.margin><Insets bottom="8"/></VBox.margin>
|
||||
</Label>
|
||||
@@ -129,8 +125,7 @@
|
||||
-fx-background-radius: 2;"
|
||||
StackPane.alignment="CENTER_LEFT"/>
|
||||
<HBox prefWidth="220" prefHeight="36">
|
||||
<!-- RMI parte attivo di default, usiamo la classe registrata -->
|
||||
<Label fx:id="labelRMI" text="RMI" prefWidth="110" prefHeight="36" alignment="CENTER"
|
||||
<Label fx:id="labelRMI" text="RMI" prefWidth="110" maxWidth="110" prefHeight="36" alignment="CENTER"
|
||||
styleClass="toggle-label"/>
|
||||
<Label fx:id="labelTCP" text="TCP" prefWidth="110" prefHeight="36" alignment="CENTER"
|
||||
styleClass="toggle-label"/>
|
||||
@@ -139,15 +134,15 @@
|
||||
|
||||
<!-- Error label -->
|
||||
<Label fx:id="labelErrore" maxWidth="Infinity" wrapText="true" textAlignment="CENTER"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 10; -fx-text-fill: #e05050;
|
||||
style="-fx-font-family: 'Cinzel'; -fx-font-size: 10; -fx-text-fill: #e05050;
|
||||
-fx-min-height: 18;">
|
||||
<VBox.margin><Insets bottom="16"/></VBox.margin>
|
||||
</Label>
|
||||
|
||||
<!-- Connect button -->
|
||||
<Button fx:id="btnAccedi" text="CONNECT" maxWidth="Infinity"
|
||||
style="-fx-font-family: 'Inknut Antiqua'; -fx-font-size: 11; -fx-font-weight: bold;
|
||||
-fx-letter-spacing: 3; -fx-text-fill: #0c0601;
|
||||
style="-fx-font-family: 'Cinzel'; -fx-font-size: 12; -fx-font-weight: bold;
|
||||
-fx-letter-spacing: 4; -fx-text-fill: #0c0601;
|
||||
-fx-background-color: linear-gradient(to right, #f4c05a, #c8791a, #f4c05a);
|
||||
-fx-padding: 13 48 13 48; -fx-background-radius: 2;
|
||||
-fx-cursor: hand;"/>
|
||||
|
||||
@@ -68,39 +68,13 @@
|
||||
-fx-background-color: #b42224;
|
||||
}
|
||||
|
||||
/* Registrazione Font */
|
||||
@font-face {
|
||||
font-family: 'Inknut Antiqua';
|
||||
src: url('../Fonts/InknutAntiqua-Regular.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inknut Antiqua';
|
||||
font-weight: bold;
|
||||
src: url('../Fonts/InknutAntiqua-Bold.ttf');
|
||||
}
|
||||
|
||||
.font-inknut-title {
|
||||
-fx-font-family: 'Inknut Antiqua';
|
||||
-fx-font-weight: bold;
|
||||
-fx-font-size: 24;
|
||||
}
|
||||
|
||||
.font-inknut-normal {
|
||||
-fx-font-family: 'Inknut Antiqua';
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
-fx-effect: dropshadow(gaussian, rgba(244,192,90,0.45), 18, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* ==========================================
|
||||
NUOVI STILI AGGIUNTI PER IL TOGGLE
|
||||
========================================== */
|
||||
|
||||
/* Struttura base fissa dei label RMI e TCP per evitare modifiche di layout */
|
||||
.toggle-label {
|
||||
-fx-font-family: 'Inknut Antiqua';
|
||||
-fx-font-family: 'Cinzel';
|
||||
-fx-font-size: 11px;
|
||||
-fx-font-weight: bold;
|
||||
-fx-text-fill: rgba(244,192,90,0.55); /* Colore non attivo (dorato trasparente) */
|
||||
@@ -108,5 +82,8 @@
|
||||
|
||||
/* Stato attivo del protocollo selezionato */
|
||||
.toggle-label:active-protocol {
|
||||
-fx-font-family: 'Cinzel';
|
||||
-fx-font-size: 11px;
|
||||
-fx-font-weight: bold;
|
||||
-fx-text-fill: #0c0601; /* Grigio scurissimo/nero sul cursore luminoso */
|
||||
}
|
||||
Reference in New Issue
Block a user