ServerGui view

This commit is contained in:
Clément
2025-03-05 12:06:27 +01:00
parent 583505d93a
commit a83104d322
4 changed files with 51 additions and 6 deletions

View File

@@ -9,6 +9,6 @@
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
</padding>
<Label fx:id="IPAddress" />
<Button text="Enable Server" />
</VBox>
<Label fx:id="IPAddress" styleClass="address" />
<Button text="Start Server" onAction="#toggleServer" fx:id="toggleServerButton" styleClass="toggle-button"/>
</VBox>

View File

@@ -7,4 +7,21 @@
.address {
-fx-text-fill: white;
-fx-font-size: 25px;
}
.toggle-button {
-fx-background-color: darkblue;
-fx-text-fill: white;
-fx-font-size: 20px;
-fx-padding: 10px;
-fx-border-width: 2px;
-fx-border-color: white;
-fx-cursor: hand;
-fx-border-radius: 5;
}
.toggle-button:hover {
-fx-background-color: white;
-fx-text-fill: darkblue;
transition: -fx-background-color 0.3s, -fx-text-fill 0.3s;
}