1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-24 01:09:23 +01:00

initialize the tooltip color to white

This commit is contained in:
Ell 2020-10-31 17:55:46 +01:00
parent e7f2c8eca4
commit 1a2fc814aa
2 changed files with 3 additions and 2 deletions

View file

@ -70,7 +70,8 @@ namespace MLEM.Ui.Elements {
base.InitStyle(style);
this.Texture.SetFromStyle(style.TooltipBackground);
this.MouseOffset.SetFromStyle(style.TooltipOffset);
this.Paragraph?.TextColor.SetFromStyle(style.TooltipTextColor);
// we can't set from style here since it's a different element
this.Paragraph?.TextColor.Set(style.TooltipTextColor);
}
/// <summary>

View file

@ -106,7 +106,7 @@ namespace MLEM.Ui.Style {
/// <summary>
/// The color that the text of a <see cref="Tooltip"/> should have
/// </summary>
public Color TooltipTextColor;
public Color TooltipTextColor = Color.White;
/// <summary>
/// The texture that the <see cref="ProgressBar"/> element uses for its background
/// </summary>