1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-26 02:09:24 +01:00

Made elements' ui styles be inherited by their children

This commit is contained in:
Ell 2023-06-14 09:33:08 +02:00
parent d69cd80b72
commit 985dc74376
2 changed files with 2 additions and 1 deletions

View file

@ -45,6 +45,7 @@ Improvements
- Allow specifying start and end indices when drawing a Paragraph
- Allow elements with larger children to influence a panel's scrollable area
- Remove all elements from a UiSystem when it is disposed
- Made elements' ui styles be inherited by their children
Fixes
- Fixed images not updating their hidden state properly when the displayed texture changes

View file

@ -34,7 +34,7 @@ namespace MLEM.Ui.Elements {
private set {
this.system = value;
this.Controls = value?.Controls;
this.Style = this.Style.OrStyle(value?.Style);
this.AndChildren(e => e.Style = e.Style.OrStyle(value?.Style));
}
}
/// <summary>