aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-01-06 08:39:05 +0200
committerOrgad Shaneh <orgads@gmail.com>2015-01-06 09:03:24 +0100
commitb158b7e51dee1c14848359b4c6960bd048e6221a (patch)
tree39406a040174623bf856e3551bdec091041d8891 /src
parent3397e1c89b3f714eb5006aeeff7a01efda53a936 (diff)
Theming: Use a lighter color for splitters in the dark theme
This is a workaround for 3.3. In master the splitter color (among some other widgets) should have its own value. Task-number: QTCREATORBUG-13768 Change-Id: I8456fba3866e4857985e07a4708333952512484d Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/coreplugin/manhattanstyle.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp
index ef849f427c3..aec3259de7d 100644
--- a/src/plugins/coreplugin/manhattanstyle.cpp
+++ b/src/plugins/coreplugin/manhattanstyle.cpp
@@ -619,7 +619,10 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt
switch (element) {
case CE_Splitter:
- painter->fillRect(option->rect, Utils::StyleHelper::borderColor());
+ if (creatorTheme()->widgetStyle() == Theme::StyleFlat)
+ painter->fillRect(option->rect, creatorTheme()->color(Theme::BackgroundColorSelected));
+ else
+ painter->fillRect(option->rect, Utils::StyleHelper::borderColor());
break;
case CE_TabBarTabShape: