Skip to content

Commit

Permalink
review pass 1
Browse files Browse the repository at this point in the history
  • Loading branch information
aspiringLich committed Sep 24, 2024
1 parent a94a803 commit 54cc3dc
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Content.Client/Administration/UI/AdminUIHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading;
using Content.Client.Stylesheets;
using Content.Client.Stylesheets.Redux;
using Robust.Client.UserInterface.Controls;
using Timer = Robust.Shared.Timing.Timer;

Expand Down Expand Up @@ -50,7 +51,7 @@ public static bool TryConfirm(Button button, Dictionary<Button, ConfirmationData
button.Text = data.OriginalText;
}, data.Cancellation.Token);

button.SetOnlyStyleClass("negative");
button.SetOnlyStyleClass(StyleClass.Negative);
button.Text = Loc.GetString("admin-player-actions-confirm");
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions Content.Client/Ame/UI/AmeWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public void UpdateState(BoundUserInterfaceState state)
var castState = (AmeControllerBoundUserInterfaceState) state;

// Disable all buttons if not powered
if (ContentsContainer.Children.Any())
if (Contents.Children.Any())
{
ButtonHelpers.SetButtonDisabledRecursive(ContentsContainer, !castState.HasPower);
ButtonHelpers.SetButtonDisabledRecursive(Contents, !castState.HasPower);
EjectButton.Disabled = false;
}

Expand Down
2 changes: 1 addition & 1 deletion Content.Client/ContextMenu/UI/ContextMenuElement.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Name="IconLabel"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
StyleClasses="contextMenuIconLabel LabelSubText"
StyleClasses="LabelSubText"
Align="Right"
Visible="false"/>
</SpriteView>
Expand Down
1 change: 0 additions & 1 deletion Content.Client/ContextMenu/UI/ContextMenuElement.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public partial class ContextMenuElement : ContainerButton
{
public const string StyleClassContextMenuButton = "contextMenuButton";
public const string StyleClassContextMenuExpansionTexture = "contextMenuExpansionTexture";
public const string StyleClassEntityMenuIconLabel = "contextMenuIconLabel";

public const float ElementMargin = 2;
public const float ElementHeight = 32;
Expand Down
3 changes: 0 additions & 3 deletions Content.Client/Lobby/UI/CharacterSetupGui.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
<BoxContainer Name="Characters" Orientation="Vertical" />
</ScrollContainer>
<PanelContainer MinSize="2 0" StyleClasses="highlight">
<!-- <PanelContainer.PanelOverride> -->
<!-- <gfx:StyleBoxFlat BackgroundColor="highlight" ContentMarginTopOverride="2" /> -->
<!-- </PanelContainer.PanelOverride> -->
</PanelContainer>
<BoxContainer Name="CharEditor" HorizontalExpand="True" />
</BoxContainer>
Expand Down
5 changes: 5 additions & 0 deletions Content.Client/Stylesheets/IStylesheetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ public interface IStylesheetManager
Stylesheet SheetNanotransen { get; }
Stylesheet SheetSystem { get; }

[Obsolete("Update to use SheetNanotransen instead")]
Stylesheet SheetNano { get; }
[Obsolete("Update to use SheetSystem instead")]
Stylesheet SheetSpace { get; }

public Dictionary<string, Stylesheet> Stylesheets { get; }

void Initialize();
Expand Down
4 changes: 4 additions & 0 deletions Content.Client/Stylesheets/StylesheetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public sealed class StylesheetManager : IStylesheetManager
public Stylesheet SheetNanotransen { get; private set; } = default!;
public Stylesheet SheetSystem { get; private set; } = default!;

// obsolete, TODO(maybe): bring back normal StyleNano.cs / StyleSpace.cs? for easier merging.
public Stylesheet SheetNano { get; } = default!;
public Stylesheet SheetSpace { get; } = default!;

public Dictionary<string, Stylesheet> Stylesheets { get; private set; } = default!;

public void Initialize()
Expand Down

0 comments on commit 54cc3dc

Please sign in to comment.