Skip to content
Snippets Groups Projects
Commit f8f6504f authored by Oluwatomisin OTENIYA's avatar Oluwatomisin OTENIYA :speech_balloon:
Browse files

Added Changes Syed Requested to StoredServices.fxml

Added a StoredServices.css to handle the colours for StoredServices.fxml
parent 9fbcc7c5
No related branches found
No related tags found
No related merge requests found
Pipeline #8354 canceled
.backgroundColor { -fx-background-color: linear-gradient(to right, #ff9800, #ffb74d, #ffd180, #fff3e0); }
......@@ -6,15 +6,44 @@
<?import javafx.scene.control.TableView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Region?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.paint.LinearGradient?>
<?import javafx.scene.paint.Stop?>
<?import javafx.scene.text.Font?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.cpsc329pm.StoredServicesController">
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.cpsc329pm.StoredServicesController">
<top>
<HBox BorderPane.alignment="CENTER">
<children>
<Region prefHeight="36.0" prefWidth="0.0" HBox.hgrow="ALWAYS" />
<Label alignment="CENTER" contentDisplay="CENTER" prefHeight="36.0" prefWidth="506.0" text="Stored Services" HBox.hgrow="ALWAYS" />
<Button fx:id="backButton" contentDisplay="CENTER" mnemonicParsing="false" onAction="#handleBack" prefHeight="37.0" prefWidth="59.0" style="-fx-background-radius: 0; -fx-border-radius: 0;" text="Back" HBox.hgrow="ALWAYS" />
<Pane prefHeight="97.0" prefWidth="600.0" styleClass="backgroundColor" stylesheets="@StoredServices.css">
<children>
<Label layoutX="236.0" layoutY="20.0" prefHeight="42.0" prefWidth="157.0" text="View All Services">
<font>
<Font name="System Bold" size="17.0" />
</font>
</Label>
<Button fx:id="backButton" layoutX="533.0" layoutY="-2.0" mnemonicParsing="false" onAction="#handleBack" prefHeight="37.0" prefWidth="68.0" style="-fx-background-color: #ffc266;" text="Back" />
<Button layoutX="213.0" layoutY="60.0" mnemonicParsing="false" prefHeight="26.0" prefWidth="170.0" style="-fx-background-color: #ff8f00;" text="Delete All Services">
<textFill>
<LinearGradient endX="1.0" endY="1.0" startX="1.0" startY="1.0">
<stops>
<Stop>
<color>
<Color />
</color>
</Stop>
<Stop offset="1.0">
<color>
<Color red="1.0" green="0.7764706015586853" blue="0.42352941632270813" />
</color>
</Stop>
</stops>
</LinearGradient>
</textFill>
</Button>
</children>
</Pane>
</children>
</HBox>
</top>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment