Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Commit

Permalink
change key-value seperator of tcf : to =
Browse files Browse the repository at this point in the history
  • Loading branch information
krissh-the-dev committed Apr 5, 2020
1 parent a8070ab commit f746764
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
22 changes: 11 additions & 11 deletions src/main/java/Configurations.java
Original file line number Diff line number Diff line change
Expand Up @@ -431,17 +431,17 @@ public static void write() {
File tsf = new File("./configurations.tcf");
FileWriter fileWritter = new FileWriter(tsf, false);
BufferedWriter bw = new BufferedWriter(fileWritter);
contents = "themeName:" + themeName + "," + System.lineSeparator();
contents += "colorScheme:";
contents = "themeName=" + themeName + "," + System.lineSeparator();
contents += "colorScheme=";
if (primary.equals(Color.WHITE)) {
contents += "light,";
} else {
contents += "dark,";
}
contents += System.lineSeparator();
contents += "fontName:" + fontName + "," + System.lineSeparator();
contents += "fontSize:" + fontSize + "," + System.lineSeparator();
contents += "tabSize:" + tabSize + "," + System.lineSeparator();
contents += "fontName=" + fontName + "," + System.lineSeparator();
contents += "fontSize=" + fontSize + "," + System.lineSeparator();
contents += "tabSize=" + tabSize + "," + System.lineSeparator();
bw.write(contents);
bw.close();
} catch (IOException wre) {
Expand All @@ -466,7 +466,7 @@ public static void read() {
String settings[] = tsContents.split(",");
String settingSet[] = new String[5];
for (int i = 0; i < 5; i++) {
settingSet[i] = settings[i].split(":")[1];
settingSet[i] = settings[i].split("=")[1];
}

themeName = settingSet[0];
Expand Down Expand Up @@ -531,11 +531,11 @@ public void actionPerformed(ActionEvent ae) {
Configurations.ImOpen = false;
Configurations.ConfigWindow.dispose();
Configurations.showUI();
String defaults = "themeName:" + UIManager.getSystemLookAndFeelClassName() + ',' + System.lineSeparator();
defaults += "colorScheme:light," + System.lineSeparator();
defaults += "fontName:Monospaced," + System.lineSeparator();
defaults += "fontSize:14," + System.lineSeparator();
defaults += "tabSize:4," + System.lineSeparator();
String defaults = "themeName=" + UIManager.getSystemLookAndFeelClassName() + ',' + System.lineSeparator();
defaults += "colorScheme=light," + System.lineSeparator();
defaults += "fontName=Monospaced," + System.lineSeparator();
defaults += "fontSize=14," + System.lineSeparator();
defaults += "tabSize=4," + System.lineSeparator();
File tsf = new File("./configurations.tcf");
FileWriter fileWritter = new FileWriter(tsf, false);
BufferedWriter bw = new BufferedWriter(fileWritter);
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/configurations.tcf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
themeName:com.sun.java.swing.plaf.windows.WindowsLookAndFeel,
colorScheme:light,
fontName:Monospaced,
fontSize:14,
tabSize:4,
themeName=com.sun.java.swing.plaf.windows.WindowsLookAndFeel,
colorScheme=light,
fontName=Monospaced,
fontSize=14,
tabSize=4,
10 changes: 5 additions & 5 deletions src/main/resources/configurations.tcf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
themeName:com.sun.java.swing.plaf.windows.WindowsLookAndFeel,
colorScheme:light,
fontName:Monospaced,
fontSize:14,
tabSize:4,
themeName=com.sun.java.swing.plaf.windows.WindowsLookAndFeel,
colorScheme=light,
fontName=Monospaced,
fontSize=14,
tabSize=4,

0 comments on commit f746764

Please sign in to comment.