diff --git a/Content.Client/UserInterface/NanoStyle.cs b/Content.Client/UserInterface/NanoStyle.cs index 65c24e2069..03350fd448 100644 --- a/Content.Client/UserInterface/NanoStyle.cs +++ b/Content.Client/UserInterface/NanoStyle.cs @@ -73,6 +73,13 @@ namespace Content.Client.UserInterface buttonDisabled.SetPatchMargin(StyleBox.Margin.All, 2); buttonDisabled.SetContentMarginOverride(StyleBox.Margin.Left | StyleBox.Margin.Right, 4); + var lineEditTex = resCache.GetResource("/Nano/lineedit.png").Texture; + var lineEdit = new StyleBoxTexture + { + Texture = lineEditTex, + }; + lineEdit.SetPatchMargin(StyleBox.Margin.All, 3); + lineEdit.SetContentMarginOverride(StyleBox.Margin.Horizontal, 5); Stylesheet = new Stylesheet(new[] { @@ -175,6 +182,13 @@ namespace Content.Client.UserInterface { new StyleProperty(BoxContainer.StylePropertySeparation, 2), }), + + // Fancy LineEdit + new StyleRule(new SelectorElement(typeof(LineEdit), null, null, null), + new[] + { + new StyleProperty(LineEdit.StylePropertyStyleBox, lineEdit), + }), }); } } diff --git a/Resources/Nano/lineedit.png b/Resources/Nano/lineedit.png new file mode 100644 index 0000000000..506b88b8b9 Binary files /dev/null and b/Resources/Nano/lineedit.png differ diff --git a/engine b/engine index b3e3066c53..2462caf25a 160000 --- a/engine +++ b/engine @@ -1 +1 @@ -Subproject commit b3e3066c53a22ec4d656861d461a4337d22cf268 +Subproject commit 2462caf25a6118bb6a9af16d296e68c9dcb2755c