1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +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); base.InitStyle(style);
this.Texture.SetFromStyle(style.TooltipBackground); this.Texture.SetFromStyle(style.TooltipBackground);
this.MouseOffset.SetFromStyle(style.TooltipOffset); 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> /// <summary>

View file

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