Skip to content

Commit

Permalink
Changed some colors
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Dec 20, 2021
1 parent 449a70f commit 869077f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
import java.awt.*;

public class HpPredictedRenderer extends ResourceBarRendererWithMovement {

private static final Color predictedDead = new Color(108, 7, 7);
private static final Color actualDead = new Color(49, 7, 7);

@Override
protected Color getBarColor(double percent, double percentChange, CurrentMaxPredicted item) {
Color raw = Color.getHSBColor((float) (0.33f * percent), 0.36f, 0.52f);
Expand All @@ -29,10 +33,10 @@ protected Color getMovementBarColor(double percent, double percentChange, Curren
@Override
protected Color getBorderColor(double percent, double percentChange, CurrentMaxPredicted item, Color originalBg) {
if (percent == 0.0) {
return Color.WHITE;
return actualDead;
}
else if (item.getPredicted() == 0.0) {
return Color.RED;
return predictedDead;
}
else {
return originalBg;
Expand Down

0 comments on commit 869077f

Please sign in to comment.