Theming: Add a Color value for splitter

Used BackgroundColorSelected as a workaround in 3.3 in order to
maintain BC.

Change-Id: I1520deb8adcfed26b65aa7f4612218d15c310923
Reviewed-by: Thorben Kroeger <thorbenkroeger@gmail.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-02-11 11:42:41 +02:00
committed by Eike Ziller
parent e717a75e38
commit ed7c287f50
4 changed files with 4 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ ProgressBarColorError=error
ProgressBarColorFinished=ff5aaa3c
ProgressBarColorNormal=hoverBackground
ProgressBarTitleColor=text
SplitterColor=ffb0b0b0
TextColorDisabled=textDisabled
TextColorHighlight=ffff0000
TextColorNormal=text

View File

@@ -60,6 +60,7 @@ ProgressBarColorError=d2ff3c00
ProgressBarColorFinished=ff5aaa3c
ProgressBarColorNormal=b4ffffff
ProgressBarTitleColor=ffffffff
SplitterColor=ff151515
TextColorDisabled=ff000000
TextColorHighlight=ffa0a0a4
TextColorNormal=ff000000

View File

@@ -114,6 +114,7 @@ public:
ProgressBarColorFinished,
ProgressBarColorNormal,
ProgressBarTitleColor,
SplitterColor,
TextColorDisabled,
TextColorHighlight,
TextColorNormal,

View File

@@ -620,7 +620,7 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt
switch (element) {
case CE_Splitter:
if (creatorTheme()->widgetStyle() == Theme::StyleFlat)
painter->fillRect(option->rect, creatorTheme()->color(Theme::BackgroundColorSelected));
painter->fillRect(option->rect, creatorTheme()->color(Theme::SplitterColor));
else
painter->fillRect(option->rect, StyleHelper::borderColor());
break;