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:
parent
633fb97e68
commit
7033e2c61e
11 changed files with 39 additions and 24 deletions
|
@ -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))
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue