Skip to content

Commit

Permalink
mpl2: use predefined Painter colors when possible
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Koucher <[email protected]>
  • Loading branch information
AcKoucher committed Feb 13, 2024
1 parent db31cf0 commit 4147448
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mpl2/src/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ void Graphics::drawObjects(gui::Painter& painter)
}

painter.setPen(gui::Painter::white, true);
// dark red
painter.setBrush(gui::Painter::Color(0x80, 0x00, 0x00, 255));
painter.setBrush(gui::Painter::dark_red);

i = 0;
for (const auto& macro : hard_macros_) {
Expand Down Expand Up @@ -352,8 +351,7 @@ void Graphics::setSoftMacroBrush(gui::Painter& painter,
}

if (soft_macro.getCluster()->getClusterType() == StdCellCluster) {
// dark blue
painter.setBrush(gui::Painter::Color(0x00, 0x00, 0x80, 255));
painter.setBrush(gui::Painter::dark_blue);
} else if (soft_macro.getCluster()->getClusterType() == HardMacroCluster) {
// dark red
painter.setBrush(gui::Painter::Color(0x80, 0x00, 0x00, 150));
Expand Down

0 comments on commit 4147448

Please sign in to comment.