1 Commits
Author SHA1 Message Date
Hosein 19789bf7d1 Updated README and added another optional task. 2026-05-17 19:50:17 +03:30
3 changed files with 9 additions and 3 deletions
+4
View File
@@ -37,7 +37,11 @@ and finally add this line there:
### Controller.java
* Wire up the "Shop" buttons → show payment alerts
* Implement theme toggle (Dark ↔ Light)
* (Optional) Create initialize function and use it to set prices during runtime.
(you will need to reference the prices label in the fxml)
* (Optional) Make the plan prices go 1 dollar up each time user clicks on the shop button.
**Note**: Optional tasks are for your further practice and doesn't have extra points.
---
+3 -1
View File
@@ -10,8 +10,10 @@ public class Controller {
private boolean isDark = true;
// TODO: (Optional) Create initialize function and use it to set prices during runtime.
// TODO: (Optional:For Practice) Create initialize function and use it to set prices during runtime.
// TODO: (Optional:For Practice) Make the plan price go 1 dollar up each time user clicks on the shop button.
@FXML
private void buyBasic() {
// TODO: Call showAlert() with a message indicating the user entered the payment gateway
+2 -2
View File
@@ -17,14 +17,14 @@
<HBox spacing="25" alignment="CENTER" HBox.hgrow="ALWAYS">
<VBox styleClass="card" prefWidth="200">
<Label text="Basic" styleClass="plan-name" />
<Label text="$9.99 / month" styleClass="price" />
<Label text="\$9.99 / month" styleClass="price" />
<Label text="Single user, basic features" styleClass="desc" wrapText="true" />
<Button text="Shop" onAction="#buyBasic" styleClass="shop-btn" />
</VBox>
<VBox styleClass="card" prefWidth="200">
<Label text="Pro" styleClass="plan-name" />
<Label text="$19.99 / month" styleClass="price" />
<Label text="\$19.99 / month" styleClass="price" />
<Label text="Up to 5 users, advanced features" styleClass="desc" wrapText="true" />
<Button text="Shop" onAction="#buyPro" styleClass="shop-btn" />
</VBox>