Skip to content

Commit 1072885

Browse files
committed
About Section
1 parent 97ac515 commit 1072885

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

AppWish/AppWish/src/main/java/pn/app_wish/constant/AboutConstants.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ public record AboutConstants() {
66
private static final String APP_WISH_VERSION = "Appwish Enterprise 2.0.5";
77
private static final String ABOUT_APP_WISH = "AppWish (2) is a open source project that creates Java applications from text input with the help of AI models";
88
private static final String DEVELOPED_BY = "Pwgit-Create / Peter Westin";
9-
private static final String CONTACT = "\nEmail: snow_900@outlook.com\nIssue Portal at: ";
10-
private static final String LINK_TO_DISCUSSION = "link";
11-
private static final String LINK_TO_ISSUE_PORTAL="link";
12-
private static final String IF_YOU_LIKE_THE_PROJECT = "\n\nIf you like AppWish and wants to show your support ,please let me know by leaving a post at: ";
9+
private static final String CONTACT = "\nEmail: snow_900@outlook.com";
10+
private static final String LINK_TO_DISCUSSION = "https://github.com/pwgit-create/APPWISH_OLLAMA/discussions";
11+
private static final String LINK_TO_ISSUE_PORTAL="https://github.com/pwgit-create/APPWISH_OLLAMA/issues";
12+
private static final String IF_YOU_LIKE_THE_PROJECT = "\n\nIf you like AppWish and wants to show your support, please let me know by leaving a post";
1313
private static final String THANKS_FOR_USING_APP_WISH_ENTERPRISE = "\n\nThanks for taking the time to read the about section, you rock! :)";
1414

1515

@@ -27,6 +27,7 @@ public static String BuildAboutString() {
2727
DEVELOPED_BY +
2828
"\n\nQuestions or in need of support? " +
2929
CONTACT +
30+
"\nIssue Portal: " +
3031
LINK_TO_ISSUE_PORTAL +
3132
"\n\nJoin the discussion and see updates: " +
3233
LINK_TO_DISCUSSION +

AppWish/AppWish/src/main/java/pn/app_wish/controller/AppHistoryController.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import javafx.scene.Scene;
99
import javafx.scene.control.*;
1010
import javafx.scene.layout.AnchorPane;
11+
import javafx.scene.layout.GridPane;
1112
import javafx.scene.layout.Pane;
1213
import javafx.stage.Stage;
1314
import javafx.util.Callback;
@@ -174,7 +175,15 @@ private void showAboutMessage(ActionEvent ae) {
174175
Alert alert = new Alert(Alert.AlertType.INFORMATION);
175176
alert.setTitle(AboutConstants.GetTitleTest());
176177
alert.setHeaderText(AboutConstants.GetHeaderText());
177-
alert.setContentText(AboutConstants.BuildAboutString());
178+
179+
// Make text copyable
180+
final TextArea textArea = new TextArea(AboutConstants.BuildAboutString());
181+
textArea.setEditable(false);
182+
textArea.setWrapText(true);
183+
GridPane gridPane = new GridPane();
184+
gridPane.setMaxWidth(Double.MAX_VALUE);
185+
gridPane.add(textArea, 0, 0);
186+
alert.getDialogPane().setContent(gridPane);
178187
alert.showAndWait();
179188
}
180189
}

AppWish/AppWish/src/main/resources/splashscreen.fxml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<?import javafx.scene.control.*?>
4+
<?import javafx.scene.effect.*?>
45
<?import javafx.scene.image.*?>
56
<?import javafx.scene.layout.*?>
67
<?import javafx.scene.text.*?>
@@ -14,8 +15,11 @@
1415
</ImageView>
1516
<Label layoutX="168.0" layoutY="242.0" text="AppWish Enterprise" textFill="WHITE">
1617
<font>
17-
<Font size="36.0" name="Arif" />
18+
<Font name="Arif" size="36.0" />
1819
</font>
20+
<effect>
21+
<DropShadow />
22+
</effect>
1923
</Label>
2024

2125
</AnchorPane>

0 commit comments

Comments
 (0)