Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ logs/*
/default.properties
/help.pdf
.opal/
.com.codedead.opal/
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,14 @@ configure(AppImage) {
description = 'Create an AppImage after creating the image of the application'
}

def homeConfig = System.properties['user.home'] + '/.config/com.codedead.opal'
clean.doFirst {
delete 'default.properties'
delete 'license.pdf'
delete 'help.pdf'
delete 'logs'
delete '.opal'
delete '.com.codedead.opal'
delete "$homeConfig"
}

repositories {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/codedead/opal/utils/SharedVariables.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ public final class SharedVariables {

public static final String ICON_URL = "/images/opal.png";
public static final String CURRENT_VERSION = "1.1.0.0";
public static final boolean PORTABLE = false;
public static final boolean PORTABLE = true;
public static final String DEFAULT_LOCALE = "en-US";

public static final String PROPERTIES_BASE_PATH = PORTABLE
? System.getProperty("user.dir") + "/.opal"
: System.getProperty("user.home") + "/.opal";
? System.getProperty("user.dir") + "/.com.codedead.opal"
: System.getProperty("user.home") + "/.config/com.codedead.opal";

public static final String PROPERTIES_RESOURCE_LOCATION = "default.properties";
public static final String PROPERTIES_FILE_LOCATION = PROPERTIES_BASE_PATH + "/opal.properties";
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/windows/MainWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@

<Label GridPane.rowIndex="0" GridPane.columnIndex="1" text="%Nature">
<font>
<Font name="System Bold" size="14"/>
<Font name="System Bold" size="16"/>
</font>
<GridPane.margin>
<Insets left="5" right="5" top="10"/>
Expand Down Expand Up @@ -235,7 +235,7 @@

<Label GridPane.rowIndex="3" GridPane.columnIndex="1" text="%Office">
<font>
<Font name="System Bold" size="14"/>
<Font name="System Bold" size="16"/>
</font>
<GridPane.margin>
<Insets left="5" right="5" top="10"/>
Expand Down Expand Up @@ -288,7 +288,7 @@

<Label GridPane.rowIndex="6" GridPane.columnIndex="1" text="%Audiences">
<font>
<Font name="System Bold" size="14"/>
<Font name="System Bold" size="16"/>
</font>
<GridPane.margin>
<Insets left="5" right="5" top="10"/>
Expand Down Expand Up @@ -333,7 +333,7 @@

<Label GridPane.rowIndex="9" GridPane.columnIndex="1" text="%RadioFrequencyStatic">
<font>
<Font name="System Bold" size="14"/>
<Font name="System Bold" size="16"/>
</font>
<GridPane.margin>
<Insets left="5" right="5" top="10"/>
Expand Down Expand Up @@ -377,7 +377,7 @@

<Label GridPane.rowIndex="12" GridPane.columnIndex="1" text="%Other">
<font>
<Font name="System Bold" size="14"/>
<Font name="System Bold" size="16"/>
</font>
<GridPane.margin>
<Insets left="5" right="5" top="10"/>
Expand Down