Skip to content
4 changes: 3 additions & 1 deletion BeefLibs/Beefy2D/src/theme/dark/DarkButton.bf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace Beefy.theme.dark
{
public String mLabel ~ delete _;
public float mDrawDownPct;
public FontAlign mLabelAlign = .Centered;
public float mLabelXOfs;
public float mLabelYOfs;

[DesignEditable(DefaultEditString=true)]
Expand Down Expand Up @@ -79,7 +81,7 @@ namespace Beefy.theme.dark
using (g.PushColor(mDisabled ? 0x80FFFFFF : Color.White))
{
using (g.PushColor(DarkTheme.COLOR_TEXT))
DarkTheme.DrawUnderlined(g, mLabel, GS!(2), (mHeight - GS!(20)) / 2 + mLabelYOfs, .Centered, mWidth - GS!(4), .Truncate);
DarkTheme.DrawUnderlined(g, mLabel, GS!(2) + mLabelXOfs, (mHeight - GS!(20)) / 2 + mLabelYOfs, mLabelAlign, mWidth - GS!(4) - mLabelXOfs, .Truncate);
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions IDE/src/IDEApp.bf
Original file line number Diff line number Diff line change
Expand Up @@ -7342,6 +7342,8 @@ namespace IDE
if ((setFocus) && (sourceViewPanel.mWidgetWindow != null))
sourceViewPanel.FocusEdit();

mErrorsPanel?.OnSourceViewOpened();

return (sourceViewPanel, newTabButton);
}

Expand Down Expand Up @@ -7656,6 +7658,8 @@ namespace IDE
}
}

mErrorsPanel?.OnSourceViewClosed();

//var intDict = scope Dictionary<String, int>();

/*if (mRecentFilesList.Count >= 1)
Expand Down
Loading
Loading