mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed bookmark icon drawing location when below collapsed code
This commit is contained in:
parent
14a3dd8e7d
commit
e7c05068a7
1 changed files with 5 additions and 3 deletions
|
@ -4678,10 +4678,12 @@ namespace IDE.ui
|
|||
continue;
|
||||
if (ewc.IsLineCollapsed(drawLineNum))
|
||||
continue;
|
||||
//hadLineIcon[drawLineNum - lineStart] = true;
|
||||
|
||||
float iconX = Math.Max(GS!(-5), mEditWidget.mX - GS!(30) - sDrawLeftAdjust);
|
||||
float iconY = 0 + ewc.mLineCoords[drawLineNum] + (lineSpacing - DarkTheme.sUnitSize + GS!(5)) / 2;
|
||||
|
||||
Image image = DarkTheme.sDarkTheme.GetImage(bookmark.mIsDisabled ? .IconBookmarkDisabled : .IconBookmark);
|
||||
g.Draw(image, Math.Max(GS!(-5), mEditWidget.mX - GS!(30) - sDrawLeftAdjust),
|
||||
0 + bookmark.mLineNum * lineSpacing);
|
||||
g.Draw(image, iconX, iconY);
|
||||
|
||||
var curLineFlags = ref lineFlags[drawLineNum - lineStart];
|
||||
curLineFlags |= .Boomkmark;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue