Skip to content

Commit

Permalink
Add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRisenPhoenix committed Mar 20, 2024
1 parent 7f8b2c6 commit 6d85b78
Show file tree
Hide file tree
Showing 7 changed files with 261 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ _*To ensure compatibility with older Java versions, please set the language leve

## Documentation
JavaDoc is automatically compiled and published to [GitHub Pages](https://nami-thu.github.io/IGTPrototypingTool/).
Please make sure to document all public methods and classes to help lowering the barrier for new students.
Please make sure to document all public methods and classes to help lowering the barrier for new students.

## License
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.

The icon is taken from MITK, which is licensed under the BSD 3-Clause License. Check the [respective attribution](src/main/resources/icon/attribution.txt) for more information.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ spotbugsMain {

launch4j {
mainClassName = 'mainMethod.StartClass'
icon = "${projectDir}/src/main/resources/icon/icon.ico"
}
2 changes: 2 additions & 0 deletions src/main/java/mainMethod/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import util.ControllerCollector;
import util.CustomLogger;
Expand Down Expand Up @@ -36,6 +37,7 @@ public void start(Stage primaryStage) throws IOException {
primaryStage.setTitle("IGT Prototyping Tool");
primaryStage.setMinHeight(400);
primaryStage.setMinWidth(800);
primaryStage.getIcons().add(new Image("icon/icon.png"));
Scene scene = new Scene(root);
scene.getStylesheets().add("css/customstyle.css");
primaryStage.setScene(scene);
Expand Down
34 changes: 34 additions & 0 deletions src/main/resources/icon/attribution.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Taken from MITK
https://github.com/MITK/MITK

MITK is developed under the BSD 3-Clause License.

BSD 3-Clause License

Copyright (c) 2003-2021, German Cancer Research Center (DKFZ)
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Binary file added src/main/resources/icon/icon.ico
Binary file not shown.
Binary file added src/main/resources/icon/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
218 changes: 218 additions & 0 deletions src/main/resources/icon/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6d85b78

Please sign in to comment.