From 2699ca46e5090468e227db68c40c5bb234e4bf1c Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 24 Jul 2017 17:03:19 +0100 Subject: [PATCH] Tweak highlight borders --- qrenderdoc/Styles/RDStyle/RDStyle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Styles/RDStyle/RDStyle.cpp b/qrenderdoc/Styles/RDStyle/RDStyle.cpp index 3cf7e12a0..7a68dbaaa 100644 --- a/qrenderdoc/Styles/RDStyle/RDStyle.cpp +++ b/qrenderdoc/Styles/RDStyle/RDStyle.cpp @@ -262,7 +262,7 @@ void RDStyle::drawControl(ControlElement control, const QStyleOption *opt, QPain if(opt->state & State_HasFocus) { QPainterPath highlight; - highlight.addEllipse(rect.center(), rect.width() / 2.0 + 0.75, rect.height() / 2.0 + 0.75); + highlight.addEllipse(rect.center(), rect.width() / 2.0 + 1.25, rect.height() / 2.0 + 1.25); p->fillPath(highlight, opt->palette.brush(QPalette::Highlight)); } @@ -319,7 +319,7 @@ void RDStyle::drawControl(ControlElement control, const QStyleOption *opt, QPain highlight.addRoundedRect(rect.adjusted(-0.5, -0.5, 0.5, 0.5), 1.0, 1.0); p->strokePath(highlight.translated(QPointF(0.5, 0.5)), - QPen(opt->palette.brush(QPalette::Highlight), 1.0)); + QPen(opt->palette.brush(QPalette::Highlight), 1.5)); } QPainterPath path;