aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/and.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-10-10 07:39:50 +0200
committerGitHub <noreply@github.com>2019-10-10 07:39:50 +0200
commit9aa03382ea46f87f336dd8f55bcd17423d1632b5 (patch)
treec1665ae87bc5a1208aa353ad9df2a44185b8e84c /qtmips_gui/coreview/and.cpp
parent7ec180881848027fbad6c7dd84b883c26643103f (diff)
parent2bfe22d935cb7d7c4f6c75f79ecfb568e75dc5d0 (diff)
downloadqtmips-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/and.cpp')
-rw-r--r--qtmips_gui/coreview/and.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qtmips_gui/coreview/and.cpp b/qtmips_gui/coreview/and.cpp
index 94128fb..6ac7a62 100644
--- a/qtmips_gui/coreview/and.cpp
+++ b/qtmips_gui/coreview/and.cpp
@@ -34,6 +34,7 @@
******************************************************************************/
#include "and.h"
+#include "coreview_colors.h"
#include <cmath>
using namespace coreview;
@@ -63,6 +64,10 @@ QRectF And::boundingRect() const {
}
void And::paint(QPainter *painter, const QStyleOptionGraphicsItem *option __attribute__((unused)), QWidget *widget __attribute__((unused))) {
+ QPen pen = painter->pen();
+ pen.setColor(BLOCK_OUTLINE_COLOR);
+ painter->setPen(pen);
+
qreal size = GAP * connectors.size();
painter->drawLine(0, 0, 0, size);
painter->drawLine(0, 0, size/2, 0);