forked from qt-creator/qt-creator
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:
committed by
Eike Ziller
parent
e717a75e38
commit
ed7c287f50
@@ -66,6 +66,7 @@ ProgressBarColorError=error
|
||||
ProgressBarColorFinished=ff5aaa3c
|
||||
ProgressBarColorNormal=hoverBackground
|
||||
ProgressBarTitleColor=text
|
||||
SplitterColor=ffb0b0b0
|
||||
TextColorDisabled=textDisabled
|
||||
TextColorHighlight=ffff0000
|
||||
TextColorNormal=text
|
||||
|
@@ -60,6 +60,7 @@ ProgressBarColorError=d2ff3c00
|
||||
ProgressBarColorFinished=ff5aaa3c
|
||||
ProgressBarColorNormal=b4ffffff
|
||||
ProgressBarTitleColor=ffffffff
|
||||
SplitterColor=ff151515
|
||||
TextColorDisabled=ff000000
|
||||
TextColorHighlight=ffa0a0a4
|
||||
TextColorNormal=ff000000
|
||||
|
@@ -114,6 +114,7 @@ public:
|
||||
ProgressBarColorFinished,
|
||||
ProgressBarColorNormal,
|
||||
ProgressBarTitleColor,
|
||||
SplitterColor,
|
||||
TextColorDisabled,
|
||||
TextColorHighlight,
|
||||
TextColorNormal,
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user