1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Draw profiler text using theme color.

This commit is contained in:
MineBill 2025-01-28 13:15:11 +02:00
parent aaa7509700
commit 0744772e23
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View file

@ -95,9 +95,12 @@ namespace IDE.ui
{ {
base.Draw(g); base.Draw(g);
DrawLabel(g, mDescEdit, "Profile Description (Optional)"); using (g.PushColor(DarkTheme.COLOR_TEXT))
DrawLabel(g, mThreadCombo, "Thread"); {
DrawLabel(g, mSampleRateEdit, "Sample Rate"); DrawLabel(g, mDescEdit, "Profile Description (Optional)");
DrawLabel(g, mThreadCombo, "Thread");
DrawLabel(g, mSampleRateEdit, "Sample Rate");
}
} }
public override void CalcSize() public override void CalcSize()

View file

@ -684,6 +684,9 @@ namespace IDE.ui
{ {
base.Draw(g); base.Draw(g);
g.PushColor(DarkTheme.COLOR_TEXT);
defer g.PopColor();
g.SetFont(DarkTheme.sDarkTheme.mSmallFont); g.SetFont(DarkTheme.sDarkTheme.mSmallFont);
g.DrawString("Session", mSessionComboBox.mX - GS!(2), mSessionComboBox.mY, .Right); g.DrawString("Session", mSessionComboBox.mX - GS!(2), mSessionComboBox.mY, .Right);
g.DrawString("Thread", mThreadComboBox.mX - GS!(2), mThreadComboBox.mY, .Right); g.DrawString("Thread", mThreadComboBox.mX - GS!(2), mThreadComboBox.mY, .Right);