Skip to content

Commit

Permalink
GH-36: added linux color scheme with ubuntu 19.04
Browse files Browse the repository at this point in the history
  • Loading branch information
tiemonl committed Sep 6, 2019
1 parent 1f587ae commit a41731c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 4 additions & 1 deletion java/bh-fisher/src/dev/garlicbread/Helper.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ private void setUpColors() {
if (OS.indexOf("win") >= 0) {
fullRangeCastColor = new Color(26, 118, 241);
startButtonGreen = new Color(155, 208, 30);
} else {
} else if (OS.indexOf("mac") >= 0){
fullRangeCastColor = new Color(23, 92, 237);
startButtonGreen = new Color(139, 202, 24);
} else {
fullRangeCastColor = new Color(35, 135, 211);
startButtonGreen = new Color(155, 208, 30);
}
}

Expand Down
11 changes: 10 additions & 1 deletion java/bh-fisher/src/dev/garlicbread/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,22 @@ private static void setUpColors() {
colorTimerCaughtFishSteam = new Color(59, 255, 59);
colorJunkItem = new Color(255, 255, 255);
oneHundredCatchColor = new Color(77, 254, 0);
} else {
} else if (OS.indexOf("mac") >= 0) {
startButtonGreen = new Color(139, 202, 24);
castButtonBlue = new Color(31, 153, 197);
colorCloseItGotAwayButton = new Color(31, 153, 197);
colorTimerCaughtFishKong = new Color(56, 255, 56);
colorTimerCaughtFishSteam = new Color(59, 255, 59);
colorJunkItem = new Color(255, 255, 255);
oneHundredCatchColor = new Color(71, 255, 3);
} else {
startButtonGreen = new Color(155, 208, 30);
castButtonBlue = new Color(30, 170, 208);
colorCloseItGotAwayButton = new Color(30, 170, 208);
colorTimerCaughtFishKong = new Color(56, 255, 56);
colorTimerCaughtFishSteam = new Color(59, 255, 59);
colorJunkItem = new Color(255, 255, 255);
oneHundredCatchColor = new Color(77, 254, 0);
}
}

Expand Down Expand Up @@ -114,6 +122,7 @@ public static void startFishing() throws InterruptedException {
boolean fishGetAway = true;
logMessage(Level.INFO, baitUsed, baitToUse, "Performing cast.");
++baitUsed;
Thread.sleep(1000);
helper.startCast(locationStartButton);
helper.moveCursor(locationTimerCaughtFish);
while (caughtFish) {
Expand Down

0 comments on commit a41731c

Please sign in to comment.