Commit 5ab8440e authored by Alessandro Portale's avatar Alessandro Portale

ProgressBar: Add a theme color for the background

The progress bar is important and custom enough to deserve its own theme
color for the background. This change adds "ProgressBarBackgroundColor"
and also sets it for dark.cretatortheme, so that it has a good contrast
to ProgressBarColorNormal.

Change-Id: I37731d7a918a862a28940e215c913f9ade8569ca
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent cdbf1f5a
......@@ -92,6 +92,7 @@ ProgressBarColorError=error
ProgressBarColorFinished=ff5aaa3c
ProgressBarColorNormal=ff808080
ProgressBarTitleColor=text
ProgressBarBackgroundColor=normalBackground
SplitterColor=ff313131
TextColorDisabled=textDisabled
TextColorError=ffff4040
......
......@@ -94,6 +94,7 @@ ProgressBarColorError=ffdb6f71
ProgressBarColorFinished=dda4d576
ProgressBarColorNormal=ff999999
ProgressBarTitleColor=toolBarItem
ProgressBarBackgroundColor=a0606060
SplitterColor=splitter
TextColorDisabled=textDisabled
TextColorError=ffff4040
......
......@@ -86,6 +86,7 @@ ProgressBarColorError=d2ff3c00
ProgressBarColorFinished=ff5aaa3c
ProgressBarColorNormal=b4ffffff
ProgressBarTitleColor=ffffffff
ProgressBarBackgroundColor=18ffffff
SplitterColor=ff151515
TextColorDisabled=ff000000
TextColorError=ffff0000
......
......@@ -112,6 +112,7 @@ public:
ProgressBarColorFinished,
ProgressBarColorNormal,
ProgressBarTitleColor,
ProgressBarBackgroundColor,
SplitterColor,
TextColorDisabled,
TextColorError,
......
......@@ -300,7 +300,7 @@ void ProgressBar::paintEvent(QPaintEvent *)
//draw the progress bar
if (creatorTheme()->widgetStyle() == Theme::StyleFlat) {
p.fillRect(rect.adjusted(2, 2, -2, -2),
creatorTheme()->color(Theme::FancyToolButtonHoverColor));
creatorTheme()->color(Theme::ProgressBarBackgroundColor));
p.fillRect(inner, c);
} else {
const static QImage bar(StyleHelper::dpiSpecificImageFile(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment