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