Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Workspace
Commits
3f26cbc8
Commit
3f26cbc8
authored
Jul 04, 2011
by
Hugo Pereira Da Costa
Browse files
fixed colors to ::roundCorner gradient.
CCBUG: 273848
parent
69534637
Changes
1
Hide whitespace changes
Inline
Side-by-side
kstyles/oxygen/oxygenstylehelper.cpp
View file @
3f26cbc8
...
...
@@ -106,7 +106,8 @@ namespace Oxygen
w
=
w
->
parentWidget
();
}
if
(
clipRect
.
isValid
()
)
{
if
(
clipRect
.
isValid
()
)
{
p
->
save
();
p
->
setClipRegion
(
clipRect
,
Qt
::
IntersectClip
);
}
...
...
@@ -199,9 +200,8 @@ namespace Oxygen
p
.
setPen
(
Qt
::
NoPen
);
QLinearGradient
lg
=
QLinearGradient
(
0.0
,
size
-
4.5
,
0.0
,
size
+
4.5
);
lg
.
setColorAt
(
0.0
,
calcLightColor
(
backgroundTopColor
(
color
)
)
);
lg
.
setColorAt
(
0.
5
0
,
calcLightColor
(
backgroundTopColor
(
color
)
)
);
lg
.
setColorAt
(
0.51
,
backgroundBottomColor
(
color
)
);
lg
.
setColorAt
(
1.0
,
backgroundBottomColor
(
color
)
);
// draw ellipse.
p
.
setBrush
(
lg
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment