diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-10-10 07:39:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-10 07:39:50 +0200 |
commit | 9aa03382ea46f87f336dd8f55bcd17423d1632b5 (patch) | |
tree | c1665ae87bc5a1208aa353ad9df2a44185b8e84c /qtmips_gui/coreview/alu.cpp | |
parent | 7ec180881848027fbad6c7dd84b883c26643103f (diff) | |
parent | 2bfe22d935cb7d7c4f6c75f79ecfb568e75dc5d0 (diff) | |
download | qtmips-9aa03382ea46f87f336dd8f55bcd17423d1632b5.tar.gz qtmips-9aa03382ea46f87f336dd8f55bcd17423d1632b5.tar.bz2 qtmips-9aa03382ea46f87f336dd8f55bcd17423d1632b5.zip |
Merge pull request #3 from MadCatX/dark_themes_compat
Improve UI compatbility with dark color schemes
Diffstat (limited to 'qtmips_gui/coreview/alu.cpp')
-rw-r--r-- | qtmips_gui/coreview/alu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qtmips_gui/coreview/alu.cpp b/qtmips_gui/coreview/alu.cpp index 5494b3f..33b1fa8 100644 --- a/qtmips_gui/coreview/alu.cpp +++ b/qtmips_gui/coreview/alu.cpp @@ -34,6 +34,7 @@ ******************************************************************************/ #include "alu.h" +#include "coreview_colors.h" #include "fontsize.h" #include <cmath> @@ -79,6 +80,11 @@ void coreview::Alu::paint(QPainter *painter, const QStyleOptionGraphicsItem *opt QPointF(DENT, HEIGHT / 2), QPointF(0, (HEIGHT / 2) - DENT) }; + + QPen pen = painter->pen(); + pen.setColor(BLOCK_OUTLINE_COLOR); + painter->setPen(pen); + painter->drawPolygon(poly, sizeof(poly) / sizeof(QPointF)); } |