Added stylesheet to project

This commit is contained in:
Gregory Ballantine 2023-01-18 11:42:32 -05:00
parent 074f7b0a53
commit 6a6c109c81
2 changed files with 14 additions and 3 deletions

View File

@ -0,0 +1,3 @@
.info-box{
-fx-padding: 10;
}

View File

@ -32,6 +32,7 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
@ -42,7 +43,7 @@
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<VBox prefHeight="400.0" prefWidth="640.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="net.metaunix.controllers.HomeController">
<VBox prefHeight="400.0" prefWidth="640.0" stylesheets="@../stylesheets/home.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="net.metaunix.controllers.HomeController">
<children>
<MenuBar VBox.vgrow="NEVER">
<menus>
@ -91,8 +92,15 @@
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<Label fx:id="osInfo" layoutX="14.0" layoutY="43.0" text="OS Info" />
<Label fx:id="overCpuTemp" layoutX="14.0" layoutY="82.0" text="Cpu Temp" />
<VBox prefHeight="200.0" prefWidth="100.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<Label fx:id="osInfo" styleClass="info-box" text="OS Info" />
<Label fx:id="overCpuTemp" styleClass="info-box" text="Cpu Temp" />
</children>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</VBox>
</children>
</AnchorPane>
</content>