Skip to content

Commit

Permalink
Merge pull request #168 from wilsonwid/wilsonwid-dg-1
Browse files Browse the repository at this point in the history
Fix theme bug
  • Loading branch information
wilsonwid authored Apr 15, 2024
2 parents d3e0b68 + f4f8dd9 commit c5009ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/scm/address/commons/core/GuiSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public class GuiSettings implements Serializable {
private static final double DEFAULT_HEIGHT = 600;
private static final double DEFAULT_WIDTH = 740;

private static final int DEFAULT_X_POS = 600;
private static final int DEFAULT_Y_POS = 740;

private static final String DEFAULT_THEME_NAME = ThemeCollection.getDarkTheme().getThemeName();
private final double windowWidth;
private final double windowHeight;
Expand All @@ -28,7 +31,7 @@ public class GuiSettings implements Serializable {
public GuiSettings() {
windowWidth = DEFAULT_WIDTH;
windowHeight = DEFAULT_HEIGHT;
windowCoordinates = null; // null represent no coordinates
windowCoordinates = new Point(DEFAULT_X_POS, DEFAULT_Y_POS);
theme = DEFAULT_THEME_NAME;
}

Expand Down

0 comments on commit c5009ed

Please sign in to comment.