Skip to content

Commit

Permalink
Shitty as fxml (grr i hate fxml) turns every text white for some reas…
Browse files Browse the repository at this point in the history
…on ) but now frontpage now scrolls and looks nice
  • Loading branch information
AdrianBalunan committed Apr 21, 2026
1 parent 75d3138 commit 2826454
Show file tree
Hide file tree
Showing 6 changed files with 169 additions and 258 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,40 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.shape.*?>
<?import javafx.scene.text.*?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.shape.Circle?>
<?import javafx.scene.text.Font?>

<HBox alignment="CENTER_LEFT"
spacing="16.0"
style="-fx-background-color: #FFFFFF;
-fx-border-color: transparent transparent #EEEEEE transparent;
-fx-border-width: 1;
-fx-padding: 14 20 14 20;"
xmlns="http://javafx.com/javafx/25"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ntnu.systemutvikling.team6.controller.components.FeedbackCardController">
<HBox alignment="CENTER_LEFT" spacing="16.0" style="-fx-background-color: #FFFFFF; -fx-border-color: transparent transparent #EEEEEE transparent; -fx-border-width: 1; -fx-padding: 14 20 14 20;" xmlns="http://javafx.com/javafx/25" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ntnu.systemutvikling.team6.controller.components.FeedbackCardController">
<children>

<Circle fx:id="avatar" fill="#D9D9D9" radius="20.0" />

<VBox spacing="4.0" HBox.hgrow="ALWAYS">
<children>
<HBox spacing="10.0" alignment="CENTER_LEFT">
<HBox alignment="CENTER_LEFT" spacing="10.0">
<children>
<Label fx:id="usernameLabel" style="-fx-text-fill: #111111;">
<Label fx:id="usernameLabel" style="-fx-text-fill: #111111;" text="sdfghjklø">
<font><Font name="System Bold" size="13.0" /></font>
</Label>
<Label fx:id="dateLabel" style="-fx-text-fill: #AAAAAA;">
<Label fx:id="dateLabel" style="-fx-text-fill: #AAAAAA;" text="xcfghuiknbghjk">
<font><Font size="11.0" /></font>
</Label>
</children>
</HBox>
<Label fx:id="commentLabel" style="-fx-text-fill: #555555;" wrapText="true">
<Label fx:id="commentLabel" style="-fx-text-fill: #555555;" text="qwertyuio" wrapText="true">
<font><Font size="12.0" /></font>
</Label>
</children>
</VBox>

</children>
</HBox>
</HBox>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<?import javafx.scene.shape.*?>
<?import javafx.scene.text.*?>

<HBox alignment="BOTTOM_CENTER" prefHeight="180.0" prefWidth="800.0" style="-fx-background-color: #2f8f8b;" GridPane.rowIndex="2" xmlns="http://javafx.com/javafx/17.0.12" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ntnu.systemutvikling.team6.controller.components.FooterController">
<HBox alignment="BOTTOM_CENTER" prefHeight="180.0" prefWidth="800.0" style="-fx-background-color: #2f8f8b;" GridPane.rowIndex="2" xmlns="http://javafx.com/javafx/25" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ntnu.systemutvikling.team6.controller.components.FooterController">
<children>
<GridPane HBox.hgrow="ALWAYS">
<columnConstraints>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>

<GridPane prefHeight="67" style="-fx-background-color: #2f8f8b;" HBox.hgrow="ALWAYS" xmlns="http://javafx.com/javafx/17.0.12" xmlns:fx="http://javafx.com/fxml/1" GridPane.columnSpan="2" fx:controller="ntnu.systemutvikling.team6.controller.components.NavbarController">
<GridPane prefHeight="67" style="-fx-background-color: #2f8f8b;" HBox.hgrow="ALWAYS" xmlns="http://javafx.com/javafx/25" xmlns:fx="http://javafx.com/fxml/1" GridPane.columnSpan="2" fx:controller="ntnu.systemutvikling.team6.controller.components.NavbarController">
<columnConstraints>
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" percentWidth="30.0" prefWidth="100.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" percentWidth="30.0" prefWidth="100.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
<children>
<ImageView fitHeight="60.0" fitWidth="60.0" pickOnBounds="true" preserveRatio="true" />
<Region prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS" />
<Label style="-fx-background-color: #cdedcf; -fx-background-radius: 12; -fx-padding: 4 10 4 10; -fx-text-fill: #2e7d32; -fx-font-size: 12;" text="Verified" />
<Label textFill="2e7d32" style="-fx-background-color: #cdedcf; -fx-background-radius: 12; -fx-padding: 4 10 4 10; -fx-text-fill: #2e7d32; -fx-font-size: 12;" text="Verified" />
</children>
</HBox>
<Label fx:id="organizationName" text="Organization name">
<Label fx:id="organizationName" text="Organization name" textFill="black">
<font>
<Font name="System Bold" size="26.0" />
</font>
</Label>
<Label fx:id="organizationDescription" prefWidth="300.0" text="Some interesting information about the organization" wrapText="true" />
<Label textFill="black" fx:id="organizationDescription" prefWidth="300.0" text="Some interesting information about the organization" wrapText="true" />
<Region prefHeight="200.0" prefWidth="200.0" VBox.vgrow="ALWAYS" />
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="12.0">
<children>
Expand Down
Loading

0 comments on commit 2826454

Please sign in to comment.