From ba3de05a4192d85b0c04559dc46b4515fb6c0270 Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Mon, 8 Apr 2024 12:38:28 +1000 Subject: [PATCH] Xamlify this too --- .../Preferences/UI/HighlightedContainer.cs | 19 ------------------- .../Preferences/UI/HighlightedContainer.xaml | 11 +++++++++++ .../UI/HighlightedContainer.xaml.cs | 14 ++++++++++++++ 3 files changed, 25 insertions(+), 19 deletions(-) delete mode 100644 Content.Client/Preferences/UI/HighlightedContainer.cs create mode 100644 Content.Client/Preferences/UI/HighlightedContainer.xaml create mode 100644 Content.Client/Preferences/UI/HighlightedContainer.xaml.cs diff --git a/Content.Client/Preferences/UI/HighlightedContainer.cs b/Content.Client/Preferences/UI/HighlightedContainer.cs deleted file mode 100644 index 205bc1ea6c962f..00000000000000 --- a/Content.Client/Preferences/UI/HighlightedContainer.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Robust.Client.Graphics; -using Robust.Client.UserInterface.Controls; - -namespace Content.Client.Preferences.UI; - -public sealed class HighlightedContainer : PanelContainer -{ - public HighlightedContainer() - { - PanelOverride = new StyleBoxFlat() - { - BackgroundColor = new Color(47, 47, 53), - ContentMarginTopOverride = 10, - ContentMarginBottomOverride = 10, - ContentMarginLeftOverride = 10, - ContentMarginRightOverride = 10 - }; - } -} diff --git a/Content.Client/Preferences/UI/HighlightedContainer.xaml b/Content.Client/Preferences/UI/HighlightedContainer.xaml new file mode 100644 index 00000000000000..8cf6e2da05b0c1 --- /dev/null +++ b/Content.Client/Preferences/UI/HighlightedContainer.xaml @@ -0,0 +1,11 @@ + + + + + diff --git a/Content.Client/Preferences/UI/HighlightedContainer.xaml.cs b/Content.Client/Preferences/UI/HighlightedContainer.xaml.cs new file mode 100644 index 00000000000000..68294d0f059641 --- /dev/null +++ b/Content.Client/Preferences/UI/HighlightedContainer.xaml.cs @@ -0,0 +1,14 @@ +using Robust.Client.AutoGenerated; +using Robust.Client.UserInterface.Controls; +using Robust.Client.UserInterface.XAML; + +namespace Content.Client.Preferences.UI; + +[GenerateTypedNameReferences] +public sealed partial class HighlightedContainer : PanelContainer +{ + public HighlightedContainer() + { + RobustXamlLoader.Load(this); + } +}