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:
parent
e7f2c8eca4
commit
1a2fc814aa
2 changed files with 3 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue