fixes background reset (#2900)
* fixes background reset * moves creation of default style out of loop * patches with background_style * removes commented code
This commit is contained in:
parent
030de46e6b
commit
07e7a13a9e
1 changed files with 9 additions and 6 deletions
|
@ -668,8 +668,11 @@ impl EditorView {
|
||||||
let hint = theme.get("hint");
|
let hint = theme.get("hint");
|
||||||
|
|
||||||
let mut lines = Vec::new();
|
let mut lines = Vec::new();
|
||||||
|
let background_style = theme.get("ui.background");
|
||||||
for diagnostic in diagnostics {
|
for diagnostic in diagnostics {
|
||||||
let style = Style::reset().patch(match diagnostic.severity {
|
let style = Style::reset()
|
||||||
|
.patch(background_style)
|
||||||
|
.patch(match diagnostic.severity {
|
||||||
Some(Severity::Error) => error,
|
Some(Severity::Error) => error,
|
||||||
Some(Severity::Warning) | None => warning,
|
Some(Severity::Warning) | None => warning,
|
||||||
Some(Severity::Info) => info,
|
Some(Severity::Info) => info,
|
||||||
|
|
Loading…
Add table
Reference in a new issue