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
KDevelop
KDevelop
Commits
e5c4500d
Commit
e5c4500d
authored
Jul 13, 2022
by
Milian Wolff
Browse files
Use correct bgcolor for tinting
We are in a branch where the background is a nullopt, so this would otherwise throw.
parent
9946986e
Changes
1
Hide whitespace changes
Inline
Side-by-side
kdevplatform/util/widgetcolorizer.cpp
View file @
e5c4500d
...
...
@@ -135,7 +135,7 @@ void collectRanges(QTextFrame* frame, const QColor& fgcolor, const QColor& bgcol
if
(
!
foreground
||
foreground
==
Qt
::
black
)
{
fmt
.
setForeground
(
fgcolor
);
}
else
if
(
foreground
->
valueF
()
<
0.7
)
{
fmt
.
setForeground
(
WidgetColorizer
::
blendForeground
(
*
foreground
,
1.0
,
fgcolor
,
*
background
));
fmt
.
setForeground
(
WidgetColorizer
::
blendForeground
(
*
foreground
,
1.0
,
fgcolor
,
bgcolor
));
}
}
else
{
auto
bg
=
background
.
value_or
(
bgcolor
);
...
...
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