Skip to content

Commit

Permalink
Merge pull request #177 from Strilanc/dev2
Browse files Browse the repository at this point in the history
Fixed outline being stroked after fill, causing it to fade
  • Loading branch information
Strilanc committed May 30, 2016
2 parents 4462606 + ecaf3ef commit ca3b4c4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ui/GatePainting.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ GatePainting.paintOutline = args => {
args.painter.strokeLine(r.topRight(), r.bottomRight());
args.painter.strokeLine(r.bottomLeft(), r.bottomRight());
}
args.painter.strokeRect(args.rect);
args.painter.strokeRect(args.rect, 'black');
};

/**
Expand All @@ -34,11 +34,8 @@ GatePainting.MAKE_HIGHLIGHTED_DRAWER =
if (args.isHighlighted) {
backColor = Config.HIGHLIGHTED_GATE_FILL_COLOR;
}
if (args.isInToolbox) {
args.painter.strokeRect(args.rect.shiftedBy(0.5, 0.5));
}
GatePainting.paintOutline(args);
args.painter.fillRect(args.rect, backColor);
GatePainting.paintOutline(args);
GatePainting.paintResizeTab(args);
GatePainting.paintGateSymbol(args);
};
Expand Down

0 comments on commit ca3b4c4

Please sign in to comment.