1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-29 03:23:37 +02:00

added a separate style property for tooltip text color

This commit is contained in:
Ell 2020-10-31 17:42:39 +01:00
parent 043369b1ad
commit e7f2c8eca4
2 changed files with 5 additions and 0 deletions

View file

@ -70,6 +70,7 @@ namespace MLEM.Ui.Elements {
base.InitStyle(style);
this.Texture.SetFromStyle(style.TooltipBackground);
this.MouseOffset.SetFromStyle(style.TooltipOffset);
this.Paragraph?.TextColor.SetFromStyle(style.TooltipTextColor);
}
/// <summary>

View file

@ -104,6 +104,10 @@ namespace MLEM.Ui.Style {
/// </summary>
public Vector2 TooltipOffset;
/// <summary>
/// The color that the text of a <see cref="Tooltip"/> should have
/// </summary>
public Color TooltipTextColor;
/// <summary>
/// The texture that the <see cref="ProgressBar"/> element uses for its background
/// </summary>
public NinePatch ProgressBarTexture;