mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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;
|
continue;
|
||||||
if (ewc.IsLineCollapsed(drawLineNum))
|
if (ewc.IsLineCollapsed(drawLineNum))
|
||||||
continue;
|
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);
|
Image image = DarkTheme.sDarkTheme.GetImage(bookmark.mIsDisabled ? .IconBookmarkDisabled : .IconBookmark);
|
||||||
g.Draw(image, Math.Max(GS!(-5), mEditWidget.mX - GS!(30) - sDrawLeftAdjust),
|
g.Draw(image, iconX, iconY);
|
||||||
0 + bookmark.mLineNum * lineSpacing);
|
|
||||||
|
|
||||||
var curLineFlags = ref lineFlags[drawLineNum - lineStart];
|
var curLineFlags = ref lineFlags[drawLineNum - lineStart];
|
||||||
curLineFlags |= .Boomkmark;
|
curLineFlags |= .Boomkmark;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue