Skip to content

Commit fb02166

Browse files
committed
Update app icon
1 parent 0422440 commit fb02166

File tree

20 files changed

+82
-156
lines changed

20 files changed

+82
-156
lines changed

src/main/java/com/github/introfog/gitwave/model/AppConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public final class AppConstants {
2323
public static final String LINK_TO_GIT_RELEASES = "https://github.com/introfog/GitWave/releases";
2424
public static final String GIT_HUB_REPO_OWNER = "introfog";
2525
public static final String APP_NAME = "GitWave";
26-
public static final String PATH_TO_LOGO = "/logo.png";
27-
// TODO make pretty logo
26+
public static final String PATH_TO_LOGO_32 = "/logo32.png";
27+
public static final String PATH_TO_LOGO_128 = "/logo128.png";
2828

2929
private AppConstants() {
3030
// empty

src/main/java/com/github/introfog/gitwave/model/DialogFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void createErrorAlert(String header, String msg) {
3535
public static void createErrorAlert(String header, String msg, Integer height) {
3636
Alert alert = new Alert(AlertType.ERROR);
3737
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
38-
stage.getIcons().add(new Image(StageFactory.class.getResourceAsStream(AppConstants.PATH_TO_LOGO)));
38+
stage.getIcons().add(new Image(StageFactory.class.getResourceAsStream(AppConstants.PATH_TO_LOGO_32)));
3939
if (height != null) {
4040
stage.setMinHeight(height);
4141
}
@@ -49,7 +49,7 @@ public static void createErrorAlert(String header, String msg, Integer height) {
4949
public static void createInfoAlert(String header, String msg) {
5050
Alert alert = new Alert(AlertType.INFORMATION);
5151
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
52-
stage.getIcons().add(new Image(StageFactory.class.getResourceAsStream(AppConstants.PATH_TO_LOGO)));
52+
stage.getIcons().add(new Image(StageFactory.class.getResourceAsStream(AppConstants.PATH_TO_LOGO_32)));
5353
alert.setTitle("GitWave info");
5454
alert.setHeaderText(header);
5555
alert.setContentText(msg);
@@ -60,7 +60,7 @@ public static void createInfoAlert(String header, String msg) {
6060
public static ButtonType createCloseConfirmationAlert() {
6161
Alert dialog = new Alert(AlertType.CONFIRMATION);
6262
Stage stage = (Stage) dialog.getDialogPane().getScene().getWindow();
63-
stage.getIcons().add(new Image(StageFactory.class.getResourceAsStream(AppConstants.PATH_TO_LOGO)));
63+
stage.getIcons().add(new Image(StageFactory.class.getResourceAsStream(AppConstants.PATH_TO_LOGO_32)));
6464
dialog.setTitle("Confirmation");
6565
dialog.setHeaderText("Do you really want to close the application?");
6666
dialog.getButtonTypes().setAll(ButtonType.OK, ButtonType.CANCEL);

src/main/java/com/github/introfog/gitwave/model/StageFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private static FxmlStageHolder creteStage(String fxmlPath, String title, Stage s
106106
stage.setTitle(title);
107107
stage.setScene(scene);
108108
stage.setResizable(true);
109-
stage.getIcons().add(new Image(StageFactory.class.getResourceAsStream(AppConstants.PATH_TO_LOGO)));
109+
stage.getIcons().add(new Image(StageFactory.class.getResourceAsStream(AppConstants.PATH_TO_LOGO_128)));
110110
BaseController controller = fxmlLoader.getController();
111111
final FxmlStageHolder fxmlStageHolder = new FxmlStageHolder(stage, fxmlLoader, scene);
112112
controller.initialize(fxmlStageHolder);

src/main/resources/com/github/introfog/gitwave/view/about.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<children>
1212
<ImageView fitHeight="86.0" fitWidth="80.0" layoutX="32.0" layoutY="40.0" pickOnBounds="true" preserveRatio="true">
1313
<image>
14-
<Image url="@../../../../../logo.png" />
14+
<Image url="@../../../../../logo256.png" />
1515
</image></ImageView>
1616
<Button layoutX="178.0" layoutY="330.0" mnemonicParsing="false" onAction="#close" text="Close" />
1717
<Label fx:id="version" layoutX="134.0" layoutY="40.0" text="VERSION">

src/main/resources/logo.ico

-11.5 KB
Binary file not shown.

src/main/resources/logo.png

-16.7 KB
Binary file not shown.

src/main/resources/logo128.png

5.83 KB
Loading

src/main/resources/logo16.png

760 Bytes
Loading

src/main/resources/logo256.ico

8.81 KB
Binary file not shown.

src/main/resources/logo256.png

11.6 KB
Loading

0 commit comments

Comments
 (0)