1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Replace most hardcoded text colors the settings text color.

This commit is contained in:
MineBill 2025-01-27 17:05:10 +02:00
parent 633fb97e68
commit 7033e2c61e
No known key found for this signature in database
11 changed files with 39 additions and 24 deletions

View file

@ -121,7 +121,8 @@ namespace Beefy.theme.dark
{
g.SetFont(mFont);
DarkTheme.DrawUnderlined(g, mLabel, GS!(22), GS!(-1));
using(g.PushColor(DarkTheme.COLOR_TEXT))
DarkTheme.DrawUnderlined(g, mLabel, GS!(22), GS!(-1));
/*int underlinePos = mLabel.IndexOf('&');
if ((underlinePos != -1) && (underlinePos < mLabel.Length - 1))

View file

@ -119,7 +119,8 @@ namespace Beefy.theme.dark
g.SetFont(mFont);
if (mText != null)
g.DrawString(mText, mTextInsets.mLeft, mTextInsets.mTop, FontAlign.Left, mWidth - mTextInsets.Horz, FontOverflowMode.Wrap);
using (g.PushColor(DarkTheme.COLOR_TEXT))
g.DrawString(mText, mTextInsets.mLeft, mTextInsets.mTop, FontAlign.Left, mWidth - mTextInsets.Horz, FontOverflowMode.Wrap);
}
}
}

View file

@ -79,6 +79,7 @@ namespace Beefy.theme.dark
mHeight = GS!(24);
mHorzJumpSize = GS!(40);
mFont = DarkTheme.sDarkTheme?.mSmallFont;
mTextColors[0] = DarkTheme.COLOR_TEXT;
}
protected override EditWidgetContent.Data CreateEditData()