Skip to content

Commit

Permalink
changes in xml
Browse files Browse the repository at this point in the history
  • Loading branch information
meenakshijay1005-netizen committed Apr 7, 2026
1 parent d94957f commit aed58fd
Show file tree
Hide file tree
Showing 4 changed files with 996 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.shape.Circle?>
<?import javafx.scene.shape.Rectangle?>
<?import javafx.scene.text.Font?>

<GridPane prefHeight="900.0" prefWidth="1400.0"
xmlns="http://javafx.com/javafx/25"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ntnu.systemutvikling.team6.controller.OrganizationEditController"
style="-fx-background-color: #F5F5F5;">

<columnConstraints>
<ColumnConstraints percentWidth="100.0"/>
</columnConstraints>

<rowConstraints>
<javafx.scene.layout.RowConstraints prefHeight="90.0"/>
<javafx.scene.layout.RowConstraints vgrow="ALWAYS"/>
</rowConstraints>

<!-- TOP NAVBAR -->
<GridPane style="-fx-background-color: #3C9692;" GridPane.rowIndex="0">
<padding>
<Insets top="12" right="24" bottom="12" left="24"/>
</padding>

<columnConstraints>
<ColumnConstraints percentWidth="25"/>
<ColumnConstraints percentWidth="45"/>
<ColumnConstraints percentWidth="30"/>
</columnConstraints>

<children>
<HBox alignment="CENTER_LEFT" GridPane.columnIndex="0">
<children>
<Label text="HelpMeHelp" textFill="WHITE">
<font>
<Font name="System Bold" size="34"/>
</font>
</Label>
</children>
</HBox>

<HBox alignment="CENTER" GridPane.columnIndex="1">
<children>
<TextField fx:id="searchField"
promptText="Search"
prefWidth="430"
prefHeight="42"
onAction="#handleSearch"
style="-fx-background-radius: 22; -fx-border-radius: 22; -fx-font-size: 16px; -fx-padding: 0 0 0 18;"/>
</children>
</HBox>

<HBox alignment="CENTER_RIGHT" spacing="18" GridPane.columnIndex="2">
<children>
<StackPane>
<children>
<Circle radius="26" fill="WHITE"/>
<Label text="SJ" textFill="#333333">
<font>
<Font name="System Bold" size="16"/>
</font>
</Label>
</children>
</StackPane>

<Button text="🔔"
mnemonicParsing="false"
style="-fx-background-color: transparent; -fx-font-size: 22px;">
<cursor>
<Cursor fx:constant="HAND"/>
</cursor>
</Button>
</children>
</HBox>
</children>
</GridPane>

<!-- MAIN CONTENT -->
<GridPane GridPane.rowIndex="1">

<columnConstraints>
<ColumnConstraints percentWidth="23"/>
<ColumnConstraints percentWidth="77"/>
</columnConstraints>

<!-- SIDEBAR -->
<VBox spacing="28" style="-fx-background-color: #E9ECEF;" GridPane.columnIndex="0">
<padding>
<Insets top="28" right="24" bottom="28" left="24"/>
</padding>

<children>
<VBox alignment="CENTER" spacing="18">
<children>
<Circle radius="95" fill="#D9D9D9"/>
<Label text="Organization&#10;Name" textAlignment="CENTER" textFill="#333333">
<font>
<Font size="20"/>
</font>
</Label>
</children>
</VBox>

<VBox spacing="24">
<children>
<Button text="💵 Payments" onAction="#switchToPaymentsPage"
style="-fx-background-color: transparent; -fx-font-size: 22px; -fx-alignment: CENTER_LEFT; -fx-text-fill: #6AA84F;"/>
<Button text="✉ Inbox" onAction="#switchToInboxPage"
style="-fx-background-color: transparent; -fx-font-size: 22px; -fx-alignment: CENTER_LEFT; -fx-text-fill: #D99028;"/>
<Button text="✎ Edit"
style="-fx-background-color: #F3F4F6; -fx-background-radius: 30; -fx-font-size: 22px; -fx-alignment: CENTER_LEFT; -fx-text-fill: #E68BA8;"/>
<Button text="⚙ Settings" onAction="#switchToSettingsPage"
style="-fx-background-color: transparent; -fx-font-size: 22px; -fx-alignment: CENTER_LEFT; -fx-text-fill: #7B7B7B;"/>
</children>
</VBox>

<VBox VBox.vgrow="ALWAYS"/>

<Button text="↪ Log Out" onAction="#handleLogout"
style="-fx-background-color: transparent; -fx-font-size: 22px; -fx-alignment: CENTER_LEFT; -fx-text-fill: #333333;"/>
</children>
</VBox>

<!-- PAGE AREA -->
<ScrollPane fitToWidth="true" hbarPolicy="NEVER" style="-fx-background-color: transparent;" GridPane.columnIndex="1">
<content>
<VBox spacing="34" style="-fx-background-color: #F5F5F5;">
<padding>
<Insets top="46" right="46" bottom="46" left="70"/>
</padding>

<children>
<VBox spacing="6">
<children>
<Label text="Edit" textFill="#111111">
<font>
<Font size="52"/>
</font>
</Label>
<Label text="Edit page" textFill="#8B8B8B">
<font>
<Font size="22"/>
</font>
</Label>
</children>
</VBox>

<!-- HEADER CARD -->
<HBox spacing="30" alignment="TOP_LEFT">
<children>
<StackPane prefWidth="760" prefHeight="220">
<children>
<Rectangle width="760" height="220" arcWidth="16" arcHeight="16" fill="#E9ECEF"/>
<VBox alignment="CENTER_LEFT" spacing="16" maxWidth="620">
<children>
<Label text="REDD BARNA NORGE" textFill="#111111">
<font>
<Font size="42"/>
</font>
</Label>
<Label text="“Våre sparepenger skal ikke ødelegge barns liv”" wrapText="true" textFill="#666666">
<font>
<Font size="18"/>
</font>
</Label>
</children>
</VBox>
</children>
</StackPane>

<Button text="✎ Edit header"
onAction="#handleEditHeader"
style="-fx-background-color: transparent; -fx-font-size: 18px; -fx-text-fill: #D790A7;"/>
</children>
</HBox>

<!-- CONTENT CARD -->
<HBox spacing="30" alignment="TOP_LEFT">
<children>
<StackPane prefWidth="760" prefHeight="300">
<children>
<Rectangle width="760" height="300" arcWidth="16" arcHeight="16" fill="#E9ECEF"/>

<HBox alignment="CENTER_LEFT" spacing="40" maxWidth="660">
<children>
<VBox spacing="18">
<children>
<Label text="Overview" textFill="#222222">
<font>
<Font size="28"/>
</font>
</Label>
<Label text="“Example text”" textFill="#777777">
<font>
<Font size="18"/>
</font>
</Label>
</children>
</VBox>

<StackPane>
<children>
<Rectangle width="170" height="210" arcWidth="10" arcHeight="10" fill="#F3DDE5"/>
<Label text="🖼" textFill="#D69BAE">
<font>
<Font size="38"/>
</font>
</Label>
</children>
</StackPane>
</children>
</HBox>
</children>
</StackPane>

<Button text="✎ Edit text&#10;box #1"
onAction="#handleEditTextBox1"
mnemonicParsing="false"
style="-fx-background-color: transparent; -fx-font-size: 18px; -fx-text-fill: #D790A7; -fx-alignment: TOP_LEFT;"/>
</children>
</HBox>
</children>
</VBox>
</content>
</ScrollPane>
</GridPane>
</GridPane>
Loading

0 comments on commit aed58fd

Please sign in to comment.