1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-26 06:28:35 +01:00

added a default text color to UiStyle

This commit is contained in:
Ell 2020-09-13 18:00:19 +02:00
parent 4f63770de0
commit 90d7aeb633
2 changed files with 5 additions and 0 deletions

View file

@ -118,6 +118,7 @@ namespace MLEM.Ui.Elements {
base.InitStyle(style);
this.TextScale.SetFromStyle(style.TextScale);
this.RegularFont.SetFromStyle(style.Font);
this.TextColor.SetFromStyle(style.TextColor);
}
/// <summary>

View file

@ -133,6 +133,10 @@ namespace MLEM.Ui.Style {
/// </summary>
public float TextScale = 1;
/// <summary>
/// The color that the text of a <see cref="Paragraph"/> should have
/// </summary>
public Color TextColor = Color.White;
/// <summary>
/// The <see cref="SoundEffectInfo"/> that should be played when an element's <see cref="Element.OnPressed"/> and <see cref="Element.OnSecondaryPressed"/> events are called.
/// Note that this sound is only played if the callbacks have any subscribers.
/// </summary>