Update SharpIdeCodeEdit.cs
This commit is contained in:
@@ -59,9 +59,10 @@ public partial class SharpIdeCodeEdit : CodeEdit
|
|||||||
startPos.X -= startRect.Size.X;
|
startPos.X -= startRect.Size.X;
|
||||||
}
|
}
|
||||||
var endPos = endRect.End;
|
var endPos = endRect.End;
|
||||||
startPos.Y -= 1;
|
startPos.Y -= 3;
|
||||||
endPos.Y -= 1;
|
endPos.Y -= 3;
|
||||||
DrawLine(startPos, endPos, color, thickness);
|
DrawDashedLine(startPos, endPos, color, thickness);
|
||||||
|
//DrawLine(startPos, endPos, color, thickness);
|
||||||
}
|
}
|
||||||
public override void _Draw()
|
public override void _Draw()
|
||||||
{
|
{
|
||||||
@@ -77,7 +78,7 @@ public partial class SharpIdeCodeEdit : CodeEdit
|
|||||||
var color = diagnostic.Severity switch
|
var color = diagnostic.Severity switch
|
||||||
{
|
{
|
||||||
DiagnosticSeverity.Error => new Color(1, 0, 0),
|
DiagnosticSeverity.Error => new Color(1, 0, 0),
|
||||||
DiagnosticSeverity.Warning => new Color(1, 1, 0),
|
DiagnosticSeverity.Warning => new Color("ffb700"),
|
||||||
_ => new Color(0, 1, 0) // Info or other
|
_ => new Color(0, 1, 0) // Info or other
|
||||||
};
|
};
|
||||||
UnderlineRange(line, startCol, endCol, color);
|
UnderlineRange(line, startCol, endCol, color);
|
||||||
|
|||||||
Reference in New Issue
Block a user