Skip to content

Commit

Permalink
Updated donationPage.fxml
Browse files Browse the repository at this point in the history
Fixed cursor for logo, donate, and abort.
  • Loading branch information
roaraf committed Apr 18, 2026
1 parent cee59c5 commit 3af1a32
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions helpmehelpapplication/src/main/resources/fxml/donationPage.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@
</StackPane>
<!-- -->
<Button mnemonicParsing="false" onAction="#switchToFrontPage" prefHeight="0.0" prefWidth="0.0" style="-fx-background-color: #2f8f8b" >
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
<graphic>
<ImageView fitHeight="54.0" fitWidth="67.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../images/Logo.png" />
</image>
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</ImageView>
</graphic>
</Button>
Expand Down Expand Up @@ -144,11 +144,18 @@
<TextField fx:id="donatioAmount" alignment="CENTER" maxWidth="-Infinity" prefHeight="26.0" prefWidth="162.0" promptText="Enter amount" translateY="50.0" StackPane.alignment="CENTER" />
<Label fx:id="CharityName" text="[Charity Name]" translateY="-70.0" />
<Label text="Enter Donation Amount:" />
<Button alignment="CENTER" contentDisplay="CENTER" mnemonicParsing="false" onAction="#Donate" prefHeight="37.0" prefWidth="165.0" style="-fx-background-color: #2E7D32;" text="Donate" textFill="WHITE" translateY="100.0" />
<Button alignment="CENTER" contentDisplay="CENTER" mnemonicParsing="false" onAction="#Donate" prefHeight="37.0" prefWidth="165.0" style="-fx-background-color: #2E7D32;" text="Donate" textFill="WHITE" translateY="100.0">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Button>
<Button mnemonicParsing="false" onAction="#switchToCharityPage" style="-fx-background-color: #ff0f0f; -fx-text-fill: #ffffff;" text="Abort" translateX="-130.0" translateY="100.0">
<padding>
<Insets bottom="10.0" left="20.0" right="20.0" top="10.0" />
</padding>
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Button>
</children>
</StackPane>
Expand Down

0 comments on commit 3af1a32

Please sign in to comment.