Fix refresh button in fax machine (#41024)
This commit is contained in:
@@ -18,6 +18,7 @@ public sealed class ButtonSheetlet<T> : Sheetlet<T> where T : PalettedStylesheet
|
||||
IIconConfig iconCfg = sheet;
|
||||
|
||||
var crossTex = sheet.GetTextureOr(iconCfg.CrossIconPath, NanotrasenStylesheet.TextureRoot);
|
||||
var refreshTex = sheet.GetTextureOr(iconCfg.RefreshIconPath, NanotrasenStylesheet.TextureRoot);
|
||||
|
||||
var rules = new List<StyleRule>
|
||||
{
|
||||
@@ -50,6 +51,11 @@ public sealed class ButtonSheetlet<T> : Sheetlet<T> where T : PalettedStylesheet
|
||||
.Class(StyleClass.CrossButtonRed)
|
||||
.Prop(TextureButton.StylePropertyTexture, crossTex),
|
||||
|
||||
// Refresh Button
|
||||
E<TextureButton>()
|
||||
.Class(StyleClass.RefreshButton)
|
||||
.Prop(TextureButton.StylePropertyTexture, refreshTex),
|
||||
|
||||
// Ensure labels in buttons are aligned.
|
||||
E<Label>()
|
||||
// ReSharper disable once AccessToStaticMemberViaDerivedType
|
||||
|
||||
Reference in New Issue
Block a user