Skip to content

Commit 6491ed7

Browse files
committed
Added icon
1 parent da1bb0e commit 6491ed7

File tree

5 files changed

+102
-2
lines changed

5 files changed

+102
-2
lines changed

icon.png

6.62 KB
Loading

icon.svg

Lines changed: 98 additions & 0 deletions
Loading

src/main/java/org/ainm/Main.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import javafx.fxml.FXMLLoader;
55
import javafx.scene.Parent;
66
import javafx.scene.Scene;
7+
import javafx.scene.image.Image;
78
import javafx.stage.Stage;
89

910
public class Main extends Application {
@@ -14,8 +15,9 @@ public void start(Stage stage) {
1415
Parent root = FXMLLoader.load(getClass().getResource("/fxml/MainView.fxml"));
1516
Scene scene = new Scene(root, 640, 480);
1617
stage.setScene(scene);
17-
stage.setTitle("Ainm - 0.01 / Todolist");
18+
stage.setTitle("Ainm - 0.8 - Alpha");
1819
stage.setMaximized(true);
20+
stage.getIcons().add(new Image(Main.class.getResourceAsStream("/icon.png")));
1921
stage.show();
2022
} catch (Exception e) {
2123
e.printStackTrace();

src/main/resources/icon.png

701 Bytes
Loading

src/test/java/ainm/LibraryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ class LibraryTest {
1313
Library classUnderTest = new Library();
1414
assertTrue(classUnderTest.someLibraryMethod(), "someLibraryMethod should return 'true'");
1515
}
16-
}
16+
}

0 commit comments

Comments
 (0)