Refactor context menu UI (#14334)

This commit is contained in:
08A
2023-03-13 19:51:36 +01:00
committed by GitHub
parent 383a8f8d13
commit 3b90a6357a
7 changed files with 67 additions and 62 deletions

View File

@@ -4,10 +4,18 @@
xmlns:ui="clr-namespace:Content.Client.ContextMenu.UI"
MinHeight="{x:Static ui:ContextMenuElement.ElementHeight}">
<BoxContainer Orientation="Horizontal">
<Control
<SpriteView
Name="Icon"
SetWidth="{x:Static ui:ContextMenuElement.ElementHeight}"
SetHeight="{x:Static ui:ContextMenuElement.ElementHeight}"/>
SetHeight="{x:Static ui:ContextMenuElement.ElementHeight}"
OverrideDirection="South">
<Label
Name="IconLabel"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
StyleClasses="contextMenuIconLabel"
Visible="false"/>
</SpriteView>
<RichTextLabel
Name="Label"
MaxWidth="300"