Remove usages of SizeFlags (#4662)

* Remove usages of SizeFlags

* Remove defaults
This commit is contained in:
Visne
2021-10-03 13:37:52 +02:00
committed by GitHub
parent 6fdb364497
commit 553ca72c74
4 changed files with 12 additions and 15 deletions

View File

@@ -1,13 +1,13 @@
<BoxContainer xmlns="https://spacestation14.io"
Orientation="Vertical">
<Control MinSize="0 5" />
<BoxContainer Orientation="Horizontal">
<!-- <Label Text="{Loc Search}" CustomMinimumSize="100 0" /> -->
<!-- <Control CustomMinimumSize="50 0" /> -->
<LineEdit Name="FilterLineEdit" MinSize="100 0" SizeFlagsHorizontal="FillExpand" PlaceHolder="{Loc Filter}"/>
</BoxContainer>
<!-- <Control CustomMinimumSize="0 5" /> -->
<ItemList
Name="PlayerItemList" SelectMode="Single" SizeFlagsVertical="FillExpand" SizeFlagsHorizontal="FillExpand"
MinSize="100 100" />
<LineEdit Name="FilterLineEdit"
MinSize="100 0"
HorizontalExpand="True"
PlaceHolder="{Loc Filter}"/>
<ItemList Name="PlayerItemList"
SelectMode="Single"
VerticalExpand="True"
HorizontalExpand="True"
MinSize="100 100" />
</BoxContainer>

View File

@@ -348,7 +348,7 @@ namespace Content.Client.CharacterAppearance
_facialHairStylePicker.OnHairStylePicked += newStyle => owner.HairSelected(newStyle, true);
_facialHairStylePicker.OnHairColorPicked += newColor => owner.HairColorSelected(newColor, true);
_eyeColorPicker = new EyeColorPicker {SizeFlagsHorizontal = SizeFlags.FillExpand};
_eyeColorPicker = new EyeColorPicker { HorizontalExpand = true };
_eyeColorPicker.OnEyeColorPicked += newColor => owner.EyeColorSelected(newColor);
Contents.AddChild(new BoxContainer

View File

@@ -1,7 +1,7 @@
<Control xmlns="https://spacestation14.io">
<BoxContainer Orientation="Vertical" SeparationOverride="0">
<Button Name="RoleButton">
<Label Name="TimerLabel" SizeFlagsHorizontal="ShrinkEnd" SizeFlagsVertical="ShrinkEnd" />
<Label Name="TimerLabel" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
</Button>
</BoxContainer>
</Control>

View File

@@ -434,10 +434,7 @@ namespace Content.Client.Verbs
Stretch = TextureRect.StretchMode.KeepCentered
}),
(_label = new Label
{
SizeFlagsHorizontal = SizeFlags.FillExpand
}),
(_label = new Label { HorizontalExpand = true }),
// Padding
new Control {MinSize = (8, 0)},