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
Utilities
Kate
Commits
92750179
Commit
92750179
authored
Sep 04, 2022
by
Waqar Ahmed
Browse files
Diff: set alpha on selection color
So that we can see red/green bg with selection
parent
4a9aae40
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/diff/diffeditor.cpp
View file @
92750179
...
...
@@ -34,6 +34,11 @@ DiffEditor::DiffEditor(DiffParams::Flags f, QWidget *parent)
auto
pal
=
palette
();
pal
.
setColor
(
QPalette
::
Base
,
bg
);
pal
.
setColor
(
QPalette
::
Text
,
fg
);
// set a small alpha to be able to see the red/green bg
// with selection
if
(
fg
.
alpha
()
==
255
)
{
sel
.
setAlphaF
(
0.8
);
}
pal
.
setColor
(
QPalette
::
Highlight
,
sel
);
pal
.
setColor
(
QPalette
::
HighlightedText
,
fg
);
setFont
(
Utils
::
editorFont
());
...
...
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