Skip to content
GitLab
Menu
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
dc4236da
Commit
dc4236da
authored
Nov 23, 2021
by
S. Christian Collins
Committed by
Noah Davis
Nov 23, 2021
Browse files
Reduce groove opacity for greater contrast with scrollbar/slider/etc.
BUG: 444203 (cherry picked from commit
25933f83
)
parent
fbc1d302
Changes
1
Hide whitespace changes
Inline
Side-by-side
kstyle/breezestyle.cpp
View file @
dc4236da
...
...
@@ -5153,7 +5153,7 @@ namespace Breeze
bool
Style
::
drawProgressBarGrooveControl
(
const
QStyleOption
*
option
,
QPainter
*
painter
,
const
QWidget
*
)
const
{
const
auto
&
palette
(
option
->
palette
);
const
auto
color
(
_helper
->
alphaColor
(
palette
.
color
(
QPalette
::
WindowText
),
0.
3
)
);
const
auto
color
(
_helper
->
alphaColor
(
palette
.
color
(
QPalette
::
WindowText
),
0.
2
)
);
_helper
->
renderProgressBarGroove
(
painter
,
option
->
rect
,
color
,
palette
.
color
(
QPalette
::
Window
)
);
return
true
;
}
...
...
@@ -6645,7 +6645,7 @@ namespace Breeze
auto
grooveRect
(
subControlRect
(
CC_Slider
,
sliderOption
,
SC_SliderGroove
,
widget
)
);
// base color
const
auto
grooveColor
(
_helper
->
alphaColor
(
palette
.
color
(
QPalette
::
WindowText
),
0.
3
)
);
const
auto
grooveColor
(
_helper
->
alphaColor
(
palette
.
color
(
QPalette
::
WindowText
),
0.
2
)
);
if
(
!
enabled
)
_helper
->
renderSliderGroove
(
painter
,
grooveRect
,
grooveColor
);
else
{
...
...
@@ -6744,7 +6744,7 @@ namespace Breeze
auto
grooveRect
(
subControlRect
(
CC_Dial
,
sliderOption
,
SC_SliderGroove
,
widget
)
);
// groove
const
auto
grooveColor
(
KColorUtils
::
mix
(
palette
.
color
(
QPalette
::
Window
),
palette
.
color
(
QPalette
::
WindowText
),
0.
3
)
);
const
auto
grooveColor
(
KColorUtils
::
mix
(
palette
.
color
(
QPalette
::
Window
),
palette
.
color
(
QPalette
::
WindowText
),
0.
2
)
);
// angles
const
qreal
first
(
dialAngle
(
sliderOption
,
sliderOption
->
minimum
)
);
...
...
@@ -6839,7 +6839,7 @@ namespace Breeze
}
const
auto
&
palette
(
option
->
palette
);
const
auto
color
(
_helper
->
alphaColor
(
palette
.
color
(
QPalette
::
WindowText
),
0.
3
*
(
animated
?
opacity
:
1
)
)
);
const
auto
color
(
_helper
->
alphaColor
(
palette
.
color
(
QPalette
::
WindowText
),
0.
2
*
(
animated
?
opacity
:
1
)
)
);
const
auto
&
state
(
option
->
state
);
const
bool
horizontal
(
state
&
State_Horizontal
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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