diff --git a/Content.Client/Fax/UI/FaxWindow.xaml b/Content.Client/Fax/UI/FaxWindow.xaml index 04b297ab92..4161c1e307 100644 --- a/Content.Client/Fax/UI/FaxWindow.xaml +++ b/Content.Client/Fax/UI/FaxWindow.xaml @@ -56,7 +56,7 @@ HorizontalAlignment="Center" VerticalAlignment="Center" Scale="0.9 0.9" - StyleClasses="Refresh" /> + StyleClasses="RefreshButton" /> diff --git a/Content.Client/Stylesheets/CommonStylesheet.cs b/Content.Client/Stylesheets/CommonStylesheet.cs index 671ce0b18a..d7634e68eb 100644 --- a/Content.Client/Stylesheets/CommonStylesheet.cs +++ b/Content.Client/Stylesheets/CommonStylesheet.cs @@ -48,6 +48,7 @@ public abstract class CommonStylesheet : PalettedStylesheet, IButtonConfig, IWin ResPath IIconConfig.HelpIconPath => new("help.png"); ResPath IIconConfig.CrossIconPath => new("cross.svg.png"); + ResPath IIconConfig.RefreshIconPath => new("circular_arrow.svg.96dpi.png"); ResPath IIconConfig.InvertedTriangleIconPath => new("inverted_triangle.svg.png"); ResPath IWindowConfig.WindowHeaderTexturePath => new("window_header.png"); diff --git a/Content.Client/Stylesheets/SheetletConfigs/IIconConfig.cs b/Content.Client/Stylesheets/SheetletConfigs/IIconConfig.cs index b7ab56c283..837e5f88d4 100644 --- a/Content.Client/Stylesheets/SheetletConfigs/IIconConfig.cs +++ b/Content.Client/Stylesheets/SheetletConfigs/IIconConfig.cs @@ -6,7 +6,6 @@ public interface IIconConfig : ISheetletConfig { public ResPath HelpIconPath { get; } public ResPath CrossIconPath { get; } + public ResPath RefreshIconPath { get; } public ResPath InvertedTriangleIconPath { get; } - - } diff --git a/Content.Client/Stylesheets/Sheetlets/ButtonSheetlet.cs b/Content.Client/Stylesheets/Sheetlets/ButtonSheetlet.cs index bb28109066..51ba206392 100644 --- a/Content.Client/Stylesheets/Sheetlets/ButtonSheetlet.cs +++ b/Content.Client/Stylesheets/Sheetlets/ButtonSheetlet.cs @@ -18,6 +18,7 @@ public sealed class ButtonSheetlet : Sheetlet 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 { @@ -50,6 +51,11 @@ public sealed class ButtonSheetlet : Sheetlet where T : PalettedStylesheet .Class(StyleClass.CrossButtonRed) .Prop(TextureButton.StylePropertyTexture, crossTex), + // Refresh Button + E() + .Class(StyleClass.RefreshButton) + .Prop(TextureButton.StylePropertyTexture, refreshTex), + // Ensure labels in buttons are aligned. E