Fix refresh button in fax machine (#41024)
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Scale="0.9 0.9"
|
Scale="0.9 0.9"
|
||||||
StyleClasses="Refresh" />
|
StyleClasses="RefreshButton" />
|
||||||
</Button>
|
</Button>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public abstract class CommonStylesheet : PalettedStylesheet, IButtonConfig, IWin
|
|||||||
|
|
||||||
ResPath IIconConfig.HelpIconPath => new("help.png");
|
ResPath IIconConfig.HelpIconPath => new("help.png");
|
||||||
ResPath IIconConfig.CrossIconPath => new("cross.svg.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 IIconConfig.InvertedTriangleIconPath => new("inverted_triangle.svg.png");
|
||||||
|
|
||||||
ResPath IWindowConfig.WindowHeaderTexturePath => new("window_header.png");
|
ResPath IWindowConfig.WindowHeaderTexturePath => new("window_header.png");
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ public interface IIconConfig : ISheetletConfig
|
|||||||
{
|
{
|
||||||
public ResPath HelpIconPath { get; }
|
public ResPath HelpIconPath { get; }
|
||||||
public ResPath CrossIconPath { get; }
|
public ResPath CrossIconPath { get; }
|
||||||
|
public ResPath RefreshIconPath { get; }
|
||||||
public ResPath InvertedTriangleIconPath { get; }
|
public ResPath InvertedTriangleIconPath { get; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ public sealed class ButtonSheetlet<T> : Sheetlet<T> where T : PalettedStylesheet
|
|||||||
IIconConfig iconCfg = sheet;
|
IIconConfig iconCfg = sheet;
|
||||||
|
|
||||||
var crossTex = sheet.GetTextureOr(iconCfg.CrossIconPath, NanotrasenStylesheet.TextureRoot);
|
var crossTex = sheet.GetTextureOr(iconCfg.CrossIconPath, NanotrasenStylesheet.TextureRoot);
|
||||||
|
var refreshTex = sheet.GetTextureOr(iconCfg.RefreshIconPath, NanotrasenStylesheet.TextureRoot);
|
||||||
|
|
||||||
var rules = new List<StyleRule>
|
var rules = new List<StyleRule>
|
||||||
{
|
{
|
||||||
@@ -50,6 +51,11 @@ public sealed class ButtonSheetlet<T> : Sheetlet<T> where T : PalettedStylesheet
|
|||||||
.Class(StyleClass.CrossButtonRed)
|
.Class(StyleClass.CrossButtonRed)
|
||||||
.Prop(TextureButton.StylePropertyTexture, crossTex),
|
.Prop(TextureButton.StylePropertyTexture, crossTex),
|
||||||
|
|
||||||
|
// Refresh Button
|
||||||
|
E<TextureButton>()
|
||||||
|
.Class(StyleClass.RefreshButton)
|
||||||
|
.Prop(TextureButton.StylePropertyTexture, refreshTex),
|
||||||
|
|
||||||
// Ensure labels in buttons are aligned.
|
// Ensure labels in buttons are aligned.
|
||||||
E<Label>()
|
E<Label>()
|
||||||
// ReSharper disable once AccessToStaticMemberViaDerivedType
|
// ReSharper disable once AccessToStaticMemberViaDerivedType
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Content.Client.Stylesheets;
|
namespace Content.Client.Stylesheets;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -56,6 +56,7 @@ public static class StyleClass
|
|||||||
public const string ButtonBig = "ButtonBig";
|
public const string ButtonBig = "ButtonBig";
|
||||||
|
|
||||||
public const string CrossButtonRed = "CrossButtonRed";
|
public const string CrossButtonRed = "CrossButtonRed";
|
||||||
|
public const string RefreshButton = "RefreshButton";
|
||||||
|
|
||||||
public const string ItemStatus = "ItemStatus";
|
public const string ItemStatus = "ItemStatus";
|
||||||
public const string ItemStatusNotHeld = "ItemStatusNotHeld";
|
public const string ItemStatusNotHeld = "ItemStatusNotHeld";
|
||||||
|
|||||||
@@ -1610,9 +1610,6 @@ namespace Content.Client.Stylesheets
|
|||||||
Element<TextureButton>().Class("CrossButtonRed").Pseudo(TextureButton.StylePseudoClassHover)
|
Element<TextureButton>().Class("CrossButtonRed").Pseudo(TextureButton.StylePseudoClassHover)
|
||||||
.Prop(Control.StylePropertyModulateSelf, Color.FromHex("#753131")),
|
.Prop(Control.StylePropertyModulateSelf, Color.FromHex("#753131")),
|
||||||
|
|
||||||
//
|
|
||||||
Element<TextureButton>().Class("Refresh")
|
|
||||||
.Prop(TextureButton.StylePropertyTexture, resCache.GetTexture("/Textures/Interface/Nano/circular_arrow.svg.96dpi.png")),
|
|
||||||
// ---
|
// ---
|
||||||
|
|
||||||
// Profile Editor
|
// Profile Editor
|
||||||
|
|||||||
Reference in New Issue
Block a user