Remove cringe hardcodes for background (#20374)

This commit is contained in:
Vasilis
2023-09-22 21:50:34 +02:00
committed by GitHub
parent 9e1a9dd6df
commit 413ba8cc9a
11 changed files with 17 additions and 58 deletions

View File

@@ -1,13 +1,9 @@
<ui:FancyWindow xmlns="https://spacestation14.io" <ui:FancyWindow xmlns="https://spacestation14.io"
xmlns:ui="clr-namespace:Content.Client.UserInterface.Controls" xmlns:ui="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
VerticalExpand="True" HorizontalExpand="True" VerticalExpand="True" HorizontalExpand="True"
Title="{Loc admin-notes-message-window-title}" Title="{Loc admin-notes-message-window-title}"
MinSize="600 170"> MinSize="600 170">
<PanelContainer VerticalExpand="True" HorizontalExpand="True"> <PanelContainer VerticalExpand="True" HorizontalExpand="True" StyleClasses="BackgroundDark">
<PanelContainer.PanelOverride>
<graphics:StyleBoxFlat BackgroundColor="#25252A" />
</PanelContainer.PanelOverride>
<ScrollContainer HScrollEnabled="False" VerticalExpand="True" HorizontalExpand="True" Margin="4"> <ScrollContainer HScrollEnabled="False" VerticalExpand="True" HorizontalExpand="True" Margin="4">
<BoxContainer Orientation="Vertical" SeparationOverride="10" VerticalAlignment="Bottom"> <BoxContainer Orientation="Vertical" SeparationOverride="10" VerticalAlignment="Bottom">
<Label Name="AdminLabel" Text="Loading..." /> <Label Name="AdminLabel" Text="Loading..." />

View File

@@ -1,13 +1,9 @@
<ui:FancyWindow xmlns="https://spacestation14.io" <ui:FancyWindow xmlns="https://spacestation14.io"
xmlns:ui="clr-namespace:Content.Client.UserInterface.Controls" xmlns:ui="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
VerticalExpand="True" HorizontalExpand="True" VerticalExpand="True" HorizontalExpand="True"
Title="{Loc admin-remarks-title}" Title="{Loc admin-remarks-title}"
SetSize="600 400"> SetSize="600 400">
<PanelContainer> <PanelContainer StyleClasses="BackgroundDark">
<PanelContainer.PanelOverride>
<graphics:StyleBoxFlat BackgroundColor="#25252A" />
</PanelContainer.PanelOverride>
<BoxContainer Orientation="Vertical" Margin="4"> <BoxContainer Orientation="Vertical" Margin="4">
<ScrollContainer VerticalExpand="True" HorizontalExpand="True" HScrollEnabled="False"> <ScrollContainer VerticalExpand="True" HorizontalExpand="True" HScrollEnabled="False">
<BoxContainer Orientation="Vertical" Name="NotesContainer" Access="Public" VerticalExpand="True" /> <BoxContainer Orientation="Vertical" Name="NotesContainer" Access="Public" VerticalExpand="True" />

View File

@@ -1,11 +1,7 @@
<controls:BanListControl <controls:BanListControl
xmlns="https://spacestation14.io" xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.Administration.UI.BanList" xmlns:controls="clr-namespace:Content.Client.Administration.UI.BanList">
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"> <PanelContainer StyleClasses="BackgroundDark">
<PanelContainer>
<PanelContainer.PanelOverride>
<graphics:StyleBoxFlat BackgroundColor="#25252A"/>
</PanelContainer.PanelOverride>
<ScrollContainer> <ScrollContainer>
<BoxContainer Name="Bans" Access="Public" Orientation="Vertical"> <BoxContainer Name="Bans" Access="Public" Orientation="Vertical">
<controls:BanListHeader Name="BansHeader"/> <controls:BanListHeader Name="BansHeader"/>

View File

@@ -1,9 +1,5 @@
<Popup xmlns="https://spacestation14.io" <Popup xmlns="https://spacestation14.io">
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"> <PanelContainer StyleClasses="BackgroundDark">
<PanelContainer>
<PanelContainer.PanelOverride>
<graphics:StyleBoxFlat BackgroundColor="#25252A"/>
</PanelContainer.PanelOverride>
<BoxContainer Orientation="Vertical"> <BoxContainer Orientation="Vertical">
<Label Name="ID" HorizontalExpand="True"/> <Label Name="ID" HorizontalExpand="True"/>
<Label Name="IP" HorizontalExpand="True"/> <Label Name="IP" HorizontalExpand="True"/>

View File

@@ -1,11 +1,7 @@
<Control <Control
xmlns="https://spacestation14.io" xmlns="https://spacestation14.io"
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls" xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls">
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"> <PanelContainer StyleClasses="BackgroundDark">
<PanelContainer>
<PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BackgroundColor="#25252A"/>
</PanelContainer.PanelOverride>
<SplitContainer Orientation="Horizontal" VerticalExpand="True"> <SplitContainer Orientation="Horizontal" VerticalExpand="True">
<cc:PlayerListControl Access="Public" Name="ChannelSelector" HorizontalExpand="True" SizeFlagsStretchRatio="1" /> <cc:PlayerListControl Access="Public" Name="ChannelSelector" HorizontalExpand="True" SizeFlagsStretchRatio="1" />
<BoxContainer Orientation="Vertical" HorizontalExpand="True" SizeFlagsStretchRatio="2"> <BoxContainer Orientation="Vertical" HorizontalExpand="True" SizeFlagsStretchRatio="2">

View File

@@ -1,10 +1,6 @@
<Control xmlns="https://spacestation14.io" <Control xmlns="https://spacestation14.io"
xmlns:aui="clr-namespace:Content.Client.Administration.UI.CustomControls" xmlns:aui="clr-namespace:Content.Client.Administration.UI.CustomControls">
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"> <PanelContainer StyleClasses="BackgroundDark">
<PanelContainer>
<PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BackgroundColor="#25252A"/>
</PanelContainer.PanelOverride>
<BoxContainer Orientation="Horizontal"> <BoxContainer Orientation="Horizontal">
<BoxContainer Orientation="Vertical"> <BoxContainer Orientation="Vertical">
<BoxContainer Orientation="Horizontal" MinWidth="400"> <BoxContainer Orientation="Horizontal" MinWidth="400">

View File

@@ -1,9 +1,5 @@
<Control xmlns="https://spacestation14.io" <Control xmlns="https://spacestation14.io">
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"> <PanelContainer StyleClasses="BackgroundDark">
<PanelContainer>
<PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BackgroundColor="#25252A"/>
</PanelContainer.PanelOverride>
<BoxContainer Orientation="Vertical"> <BoxContainer Orientation="Vertical">
<ScrollContainer VerticalExpand="True" HorizontalExpand="True" HScrollEnabled="False"> <ScrollContainer VerticalExpand="True" HorizontalExpand="True" HScrollEnabled="False">
<BoxContainer Orientation="Vertical" Name="Notes" Access="Public" VerticalExpand="True"/> <BoxContainer Orientation="Vertical" Name="Notes" Access="Public" VerticalExpand="True"/>

View File

@@ -1,8 +1,8 @@
<Popup xmlns="https://spacestation14.io" <Popup xmlns="https://spacestation14.io"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"> xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client">
<PanelContainer> <PanelContainer StyleClasses="BackgroundDark">
<PanelContainer.PanelOverride> <PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BackgroundColor="#25252A" BorderThickness="1" BorderColor="#18181B"/> <gfx:StyleBoxFlat BorderThickness="1" BorderColor="#18181B"/>
</PanelContainer.PanelOverride> </PanelContainer.PanelOverride>
<BoxContainer Orientation="Vertical"> <BoxContainer Orientation="Vertical">
<Label Name="PlayerNameLabel"/> <Label Name="PlayerNameLabel"/>

View File

@@ -1,5 +1,4 @@
<PanelContainer xmlns="https://spacestation14.io" <PanelContainer xmlns="https://spacestation14.io"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
HorizontalExpand="True"> HorizontalExpand="True">
<Button Name="MainButton" <Button Name="MainButton"
ToolTip="" ToolTip=""
@@ -15,10 +14,7 @@
<Label Name="ProductName" <Label Name="ProductName"
Access="Public" Access="Public"
HorizontalExpand="True" /> HorizontalExpand="True" />
<PanelContainer> <PanelContainer StyleClasses="BackgroundDark">
<PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BackgroundColor="#25252A" />
</PanelContainer.PanelOverride>
<Label Name="PointCost" <Label Name="PointCost"
Access="Public" Access="Public"
MinSize="52 32" MinSize="52 32"

View File

@@ -1,11 +1,7 @@
<Control xmlns="https://spacestation14.io" <Control xmlns="https://spacestation14.io"
xmlns:customControls="clr-namespace:Content.Client.Administration.UI.CustomControls" xmlns:customControls="clr-namespace:Content.Client.Administration.UI.CustomControls"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
Margin="0 0 0 10"> Margin="0 0 0 10">
<PanelContainer VerticalExpand="True"> <PanelContainer VerticalExpand="True" StyleClasses="BackgroundDark">
<PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BackgroundColor="#25252a"/>
</PanelContainer.PanelOverride>
<BoxContainer Orientation="Vertical" <BoxContainer Orientation="Vertical"
HorizontalExpand="True" HorizontalExpand="True"
VerticalExpand="True" VerticalExpand="True"

View File

@@ -1,17 +1,12 @@
<widgets:ChatBox <widgets:ChatBox
xmlns="https://spacestation14.io" xmlns="https://spacestation14.io"
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
xmlns:widgets="clr-namespace:Content.Client.UserInterface.Systems.Chat.Widgets" xmlns:widgets="clr-namespace:Content.Client.UserInterface.Systems.Chat.Widgets"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Systems.Chat.Controls" xmlns:controls="clr-namespace:Content.Client.UserInterface.Systems.Chat.Controls"
MouseFilter="Stop" MouseFilter="Stop"
HorizontalExpand="True" HorizontalExpand="True"
VerticalExpand="True" VerticalExpand="True"
MinSize="465 225"> MinSize="465 225">
<PanelContainer HorizontalExpand="True" VerticalExpand="True"> <PanelContainer HorizontalExpand="True" VerticalExpand="True" StyleClasses="BackgroundDark">
<PanelContainer.PanelOverride>
<graphics:StyleBoxFlat BackgroundColor="#25252AAA" />
</PanelContainer.PanelOverride>
<BoxContainer Orientation="Vertical" SeparationOverride="4" HorizontalExpand="True" VerticalExpand="True"> <BoxContainer Orientation="Vertical" SeparationOverride="4" HorizontalExpand="True" VerticalExpand="True">
<OutputPanel Name="Contents" HorizontalExpand="True" VerticalExpand="True" Margin="8 8 8 4" /> <OutputPanel Name="Contents" HorizontalExpand="True" VerticalExpand="True" Margin="8 8 8 4" />
<controls:ChatInputBox HorizontalExpand="True" Name="ChatInput" Access="Public" Margin="2"/> <controls:ChatInputBox HorizontalExpand="True" Name="ChatInput" Access="Public" Margin="2"/>