Skip to content

Commit

Permalink
fixed bugs with settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AppLoidx committed May 24, 2019
1 parent 43a5aa3 commit 03caff3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/main/java/application/DisplayStyles.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class DisplayStyles {
public static Color COLOR_ACTIVE;
public static Color COLOR_BUS;

public static Color MAIN_TEXT_COLOR = Color.lightGray;
public static Color MAIN_TEXT_COLOR = Color.white;

public static Color COLOR_INPUT_REGISTER_ACTIVE_BIT;

Expand Down Expand Up @@ -228,13 +228,13 @@ public DisplayStyles() {

COLOR_TITLE = new Color(157, 189, 165);
COLOR_VALUE = new Color(255,0,77); // цвет активных foreground кнопок
COLOR_INPUT_TITLE = new Color(0,70,85); // цвет регистров - фон
COLOR_INPUT_BODY = new Color(25,88,102); // цвет содержимого регистров - фон
COLOR_INPUT_TITLE = new Color(Integer.valueOf("29434e", 16)); // цвет регистров - фон
COLOR_INPUT_BODY = new Color(Integer.valueOf("37464f", 16)); // цвет содержимого регистров - фон
COLOR_ACTIVE_INPUT = new Color(192, 0, 0);

// CUSTOM

COLOR_BACKGROUND_STYLE = new Color(30,39,45);
COLOR_BACKGROUND_STYLE = new Color(Integer.valueOf("62717b", 16));


// END CUSTOM
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/application/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public GUI(GUI pairgui) throws Exception {
}

public void init() {

CycleActionManager.setGui(this);
this.cmanager = new ComponentManager(GUI.this);
this.bcomp.startTimer();
Expand Down Expand Up @@ -176,6 +177,7 @@ public void windowDeactivated(WindowEvent e) {
}

@Override

public void windowClosed(WindowEvent e) {

}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/application/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,5 @@ public static Color getBackgroundColor() {

public static void setBackgroundColor(Color backgroundColor) {
Settings.backgroundColor = backgroundColor;
DisplayStyles.COLOR_BACKGROUND_STYLE = backgroundColor;
}
}
2 changes: 1 addition & 1 deletion src/main/java/application/entities/SettingsData.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static SettingsData load(){
e.printStackTrace();
}
}
return new SettingsData();
return SettingsData.getDefault();
}

public static SettingsData getDefault(){
Expand Down

0 comments on commit 03caff3

Please sign in to comment.