From 77630d5c85ef72eabd2754303919a1b0e7739eeb Mon Sep 17 00:00:00 2001 From: fourtf Date: Fri, 25 May 2018 15:03:58 +0200 Subject: [PATCH] changed resize handle color --- src/widgets/splitcontainer.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/widgets/splitcontainer.cpp b/src/widgets/splitcontainer.cpp index ad909dfa..d62d7ec1 100644 --- a/src/widgets/splitcontainer.cpp +++ b/src/widgets/splitcontainer.cpp @@ -1017,8 +1017,15 @@ SplitContainer::ResizeHandle::ResizeHandle(SplitContainer *_parent) void SplitContainer::ResizeHandle::paintEvent(QPaintEvent *) { QPainter painter(this); + painter.setPen(QPen(getApp()->themes->splits.dropPreviewBorder, 2)); - painter.fillRect(this->rect(), "#999"); + painter.fillRect(this->rect(), getApp()->themes->splits.dropPreview); + + if (this->vertical) { + painter.drawLine(0, this->height() / 2, this->width(), this->height() / 2); + } else { + painter.drawLine(this->width() / 2, 0, this->width() / 2, this->height()); + } } void SplitContainer::ResizeHandle::mousePressEvent(QMouseEvent *)