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
Plasma
Plasma Breeze visual style
Commits
3a0e250b
Commit
3a0e250b
authored
Oct 15, 2020
by
Jan Blackquill
🌈
Committed by
Nate Graham
Dec 03, 2020
Browse files
[kstyle]: Tidy up drawRubberBandControl
parent
437c1355
Changes
1
Hide whitespace changes
Inline
Side-by-side
kstyle/breezestyle.cpp
View file @
3a0e250b
...
...
@@ -5448,15 +5448,15 @@ namespace Breeze
{
painter
->
save
();
painter
->
setRenderHints
(
QPainter
::
Antialiasing
);
const
auto
&
palette
(
option
->
palette
);
auto
color
=
palette
.
color
(
QPalette
::
Highlight
);
QPen
pen
=
KColorUtils
::
mix
(
color
,
palette
.
color
(
QPalette
::
Active
,
QPalette
::
WindowText
)
)
;
pen
.
setJoinStyle
(
Qt
::
RoundJoin
);
painter
->
setPen
(
pen
);
color
.
setAlpha
(
51
);
// 20% opacity
painter
->
setBrush
(
color
);
const
auto
outline
=
palette
.
color
(
QPalette
::
Highlight
);
auto
background
=
outline
;
background
.
setAlphaF
(
0.20
);
painter
->
setPen
(
outline
);
painter
->
setBrush
(
background
);
painter
->
drawRect
(
_helper
->
strokedRect
(
option
->
rect
)
);
painter
->
restore
();
...
...
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