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
25933f83
Commit
25933f83
authored
Nov 23, 2021
by
S. Christian Collins
Browse files
Reduce groove opacity for greater contrast with scrollbar/slider/etc.
BUG: 444203
parent
eaf874e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
kstyle/breezestyle.cpp
View file @
25933f83
...
...
@@ -5198,7 +5198,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
;
}
...
...
@@ -6708,7 +6708,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
{
...
...
@@ -6807,7 +6807,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
)
);
...
...
@@ -6902,7 +6902,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
);
...
...
S. Christian Collins
@schristiancollins
mentioned in commit
dc4236da
·
Nov 23, 2021
mentioned in commit
dc4236da
mentioned in commit dc4236dab2999209f1574dae83e8eb001cf77608
Toggle commit list
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