Skip to content

Commit c783fef

Browse files
HirogenCopilot
andauthored
Update src/LogExpert.UI/Entities/PaintHelper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b37e373 commit c783fef

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

src/LogExpert.UI/Entities/PaintHelper.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,7 @@ public static void CellPainting (ILogPaintContextUI logPaintCtx, bool focused, i
9090

9191
public static Color GetBackColorFromHighlightEntry (HighlightEntry? entry)
9292
{
93-
var bgColor = Color.White;
94-
95-
if (!DebugOptions.DisableWordHighlight)
96-
{
97-
if (entry != null)
98-
{
99-
bgColor = entry.BackgroundColor;
100-
}
101-
}
102-
else
103-
{
104-
if (entry != null)
105-
{
106-
bgColor = entry.BackgroundColor;
107-
}
108-
}
109-
110-
return bgColor;
93+
return entry?.BackgroundColor ?? Color.White;
11194
}
11295

11396
[SupportedOSPlatform("windows")]

0 commit comments

Comments
 (0)