From b158b7e51dee1c14848359b4c6960bd048e6221a Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 6 Jan 2015 08:39:05 +0200 Subject: [PATCH] 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 --- src/plugins/coreplugin/manhattanstyle.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: