mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-14 19:29:53 +01:00
Rename "Inset" style, implement in sheetlets (#41975)
* Rename "Inset" style, implement in sheetlets * Remove from StyleNano
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<controls:FancyWindow xmlns="https://spacestation14.io"
|
||||
<controls:FancyWindow xmlns="https://spacestation14.io"
|
||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
||||
Title="{Loc 'anomaly-generator-ui-title'}"
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</BoxContainer>
|
||||
<!--Sprite View-->
|
||||
<PanelContainer Margin="12 0 0 0"
|
||||
StyleClasses="Inset"
|
||||
StyleClasses="BackgroundPanelDark"
|
||||
VerticalAlignment="Center">
|
||||
<SpriteView Name="EntityView"
|
||||
SetSize="96 96"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<!-- Status (pressure, temperature, alarm state, device total, address, etc) -->
|
||||
<BoxContainer Orientation="Horizontal" Margin="0 0 0 2">
|
||||
<!-- Left column (view of entity) -->
|
||||
<PanelContainer Margin="2 0 6 0" StyleClasses="Inset" VerticalAlignment="Center" VerticalExpand="True">
|
||||
<PanelContainer Margin="2 0 6 0" StyleClasses="BackgroundPanelDark" VerticalAlignment="Center" VerticalExpand="True">
|
||||
<SpriteView Name="EntityView" OverrideDirection="South" Scale="2 2" SetSize="64 64"/>
|
||||
</PanelContainer>
|
||||
<!-- Center column (pressure, temperature, alarm state) -->
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
VerticalExpand="True"
|
||||
HorizontalExpand="True"
|
||||
MinSize="100 150">
|
||||
<PanelContainer VerticalExpand="True" StyleClasses="Inset">
|
||||
<PanelContainer VerticalExpand="True" StyleClasses="BackgroundPanelDark">
|
||||
<BoxContainer Name="GeneticScannerContents" Margin="5 5 5 5" Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True">
|
||||
<Label HorizontalAlignment="Center" Text="{Loc 'cloning-console-window-scanner-details-label'}" />
|
||||
<BoxContainer Orientation="Horizontal" VerticalExpand="True" HorizontalExpand="True">
|
||||
@@ -35,7 +35,7 @@
|
||||
</BoxContainer>
|
||||
</PanelContainer>
|
||||
<Control MinSize="50 5" />
|
||||
<PanelContainer VerticalExpand="True" StyleClasses="Inset">
|
||||
<PanelContainer VerticalExpand="True" StyleClasses="BackgroundPanelDark">
|
||||
<BoxContainer Name="CloningPodContents" Margin="5 5 5 5" Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True">
|
||||
<Label HorizontalAlignment="Center" Text="{Loc 'cloning-console-window-pod-details-label'}" />
|
||||
<BoxContainer Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<controls:FancyWindow xmlns="https://spacestation14.io"
|
||||
<controls:FancyWindow xmlns="https://spacestation14.io"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
||||
xmlns:style="clr-namespace:Content.Client.Stylesheets"
|
||||
@@ -10,7 +10,7 @@
|
||||
<BoxContainer Margin="0 5 10 10" Orientation="Vertical">
|
||||
<BoxContainer Margin="0" Orientation="Horizontal">
|
||||
<!-- Sprite View -->
|
||||
<PanelContainer Margin="0" StyleClasses="Inset" VerticalAlignment="Center">
|
||||
<PanelContainer Margin="0" StyleClasses="BackgroundPanelDark" VerticalAlignment="Center">
|
||||
<SpriteView Name="EntityView" Scale="2 2" SetSize="64 64" OverrideDirection="South" />
|
||||
</PanelContainer>
|
||||
<!-- Data -->
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<controls:FancyWindow xmlns="https://spacestation14.io"
|
||||
<controls:FancyWindow xmlns="https://spacestation14.io"
|
||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
|
||||
@@ -16,7 +16,7 @@
|
||||
Margin="2 16" />
|
||||
|
||||
<!-- Box with breaker, label, values -->
|
||||
<PanelContainer HorizontalExpand="True" StyleClasses="Inset">
|
||||
<PanelContainer HorizontalExpand="True" StyleClasses="BackgroundPanelDark">
|
||||
<BoxContainer Orientation="Vertical">
|
||||
<BoxContainer Orientation="Horizontal">
|
||||
<Label Text="{Loc 'battery-menu-in'}" HorizontalExpand="True" VerticalAlignment="Top"
|
||||
@@ -46,7 +46,7 @@
|
||||
Margin="2 16" />
|
||||
|
||||
<!-- Box with breaker, label, values -->
|
||||
<PanelContainer HorizontalExpand="True" StyleClasses="Inset">
|
||||
<PanelContainer HorizontalExpand="True" StyleClasses="BackgroundPanelDark">
|
||||
<BoxContainer Orientation="Vertical">
|
||||
<BoxContainer Orientation="Horizontal">
|
||||
<Label Text="{Loc 'battery-menu-out'}" HorizontalExpand="True" VerticalAlignment="Top"
|
||||
@@ -69,7 +69,7 @@
|
||||
<!-- Middle pane: charge/discharge -->
|
||||
<BoxContainer Name="ChargeDischarge" Orientation="Vertical" HorizontalExpand="True">
|
||||
<!-- Charge -->
|
||||
<PanelContainer VerticalExpand="True" StyleClasses="Inset" Margin="0 0 0 8">
|
||||
<PanelContainer VerticalExpand="True" StyleClasses="BackgroundPanelDark" Margin="0 0 0 8">
|
||||
<BoxContainer Orientation="Vertical">
|
||||
<Label Text="{Loc 'battery-menu-charge-header'}" StyleClasses="LabelKeyText" />
|
||||
<BoxContainer Orientation="Vertical" VerticalExpand="True" VerticalAlignment="Center">
|
||||
@@ -86,7 +86,7 @@
|
||||
</BoxContainer>
|
||||
</PanelContainer>
|
||||
<!-- Discharge -->
|
||||
<PanelContainer VerticalExpand="True" StyleClasses="Inset">
|
||||
<PanelContainer VerticalExpand="True" StyleClasses="BackgroundPanelDark">
|
||||
<BoxContainer Orientation="Vertical">
|
||||
<Label Text="{Loc 'battery-menu-discharge-header'}" StyleClasses="LabelKeyText" />
|
||||
<BoxContainer Orientation="Vertical" VerticalExpand="True" VerticalAlignment="Center">
|
||||
@@ -111,7 +111,7 @@
|
||||
</BoxContainer>
|
||||
|
||||
<!-- Right pane: storage -->
|
||||
<PanelContainer Name="Storage" StyleClasses="Inset" HorizontalExpand="True">
|
||||
<PanelContainer Name="Storage" StyleClasses="BackgroundPanelDark" HorizontalExpand="True">
|
||||
<BoxContainer Orientation="Vertical">
|
||||
<Label Text="{Loc 'battery-menu-storage-header'}" StyleClasses="LabelKeyText" />
|
||||
<GridContainer Columns="2">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<controls:FancyWindow xmlns="https://spacestation14.io"
|
||||
<controls:FancyWindow xmlns="https://spacestation14.io"
|
||||
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"
|
||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
||||
MinSize="450 250"
|
||||
@@ -41,7 +41,7 @@
|
||||
<Label Margin="2 0 0 0" Name="CloggedLabel" FontColorOverride="Red" Text="{Loc 'portable-generator-ui-clogged'}" />
|
||||
</BoxContainer>
|
||||
<cc:VSeparator StyleClasses="LowDivider"/>
|
||||
<PanelContainer Margin="12 0 0 0" StyleClasses="Inset" VerticalAlignment="Center">
|
||||
<PanelContainer Margin="12 0 0 0" StyleClasses="BackgroundPanelDark" VerticalAlignment="Center">
|
||||
<SpriteView Name="EntityView" SetSize="64 64" Scale="2 2" OverrideDirection="South" Margin="15"/>
|
||||
</PanelContainer>
|
||||
</BoxContainer>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<controls:FancyWindow
|
||||
<controls:FancyWindow
|
||||
xmlns="https://spacestation14.io"
|
||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
||||
MinSize="320 180"
|
||||
@@ -76,7 +76,7 @@
|
||||
</GridContainer>
|
||||
</BoxContainer>
|
||||
<PanelContainer
|
||||
StyleClasses="Inset"
|
||||
StyleClasses="BackgroundPanelDark"
|
||||
VerticalAlignment="Top">
|
||||
|
||||
<SpriteView Name="EntityView"
|
||||
|
||||
@@ -45,6 +45,10 @@ public sealed class PanelSheetlet<T> : Sheetlet<T> where T : PalettedStylesheet,
|
||||
.Prop(PanelContainer.StylePropertyPanel, StyleBoxHelpers.BaseStyleBox(sheet))
|
||||
.Modulate(sheet.SecondaryPalette.Background),
|
||||
E()
|
||||
.Class(StyleClass.BackgroundPanelDark)
|
||||
.Prop(PanelContainer.StylePropertyPanel, StyleBoxHelpers.BaseStyleBox(sheet))
|
||||
.Modulate(sheet.SecondaryPalette.BackgroundDark),
|
||||
E()
|
||||
.Class(StyleClass.BackgroundPanelOpenLeft)
|
||||
.Prop(PanelContainer.StylePropertyPanel, StyleBoxHelpers.OpenLeftStyleBox(sheet))
|
||||
.Modulate(sheet.SecondaryPalette.Background),
|
||||
|
||||
@@ -45,6 +45,7 @@ public static class StyleClass
|
||||
public const string LabelMonospaceSubHeading = "ConsoleSubHeading";
|
||||
|
||||
public const string BackgroundPanel = "BackgroundPanel"; // replaces `AngleRect`
|
||||
public const string BackgroundPanelDark = "BackgroundPanelDark"; // replaces `Inset`
|
||||
public const string BackgroundPanelOpenLeft = "BackgroundPanelOpenLeft"; // replaces `BackgroundOpenLeft`
|
||||
public const string BackgroundPanelOpenRight = "BackgroundPanelOpenRight"; // replaces `BackgroundOpenRight`
|
||||
|
||||
|
||||
@@ -67,7 +67,6 @@ namespace Content.Client.Stylesheets
|
||||
public const string StyleClassChatChannelSelectorButton = "chatSelectorOptionButton";
|
||||
public const string StyleClassChatFilterOptionButton = "chatFilterOptionButton";
|
||||
public const string StyleClassStorageButton = "storageButton";
|
||||
public const string StyleClassInset = "Inset";
|
||||
|
||||
public const string StyleClassConsoleHeading = "ConsoleHeading";
|
||||
public const string StyleClassConsoleSubHeading = "ConsoleSubHeading";
|
||||
@@ -531,13 +530,6 @@ namespace Content.Client.Stylesheets
|
||||
|
||||
var boxFont13 = resCache.GetFont("/Fonts/Boxfont-round/Boxfont Round.ttf", 13);
|
||||
|
||||
var insetBack = new StyleBoxTexture
|
||||
{
|
||||
Texture = buttonTex,
|
||||
Modulate = Color.FromHex("#202023"),
|
||||
};
|
||||
insetBack.SetPatchMargin(StyleBox.Margin.All, 10);
|
||||
|
||||
// Default paper background:
|
||||
var paperBackground = new StyleBoxTexture
|
||||
{
|
||||
@@ -1625,10 +1617,6 @@ namespace Content.Client.Stylesheets
|
||||
// Silicon law edit ui
|
||||
Element<Label>().Class(SiliconLawContainer.StyleClassSiliconLawPositionLabel)
|
||||
.Prop(Label.StylePropertyFontColor, NanoGold),
|
||||
|
||||
Element<PanelContainer>()
|
||||
.Class(StyleClassInset)
|
||||
.Prop(PanelContainer.StylePropertyPanel, insetBack),
|
||||
}).ToList());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user