Skip to content

Commit

Permalink
minor hq view adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
myangelkamikaze committed Oct 8, 2023
1 parent 5b98476 commit 918ee61
Showing 1 changed file with 41 additions and 13 deletions.
54 changes: 41 additions & 13 deletions ElectronicObserver/Window/Wpf/Headquarters/HeadquartersView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
x:Class="ElectronicObserver.Window.Wpf.Headquarters.HeadquartersView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:common="clr-namespace:ElectronicObserver.Common"
xmlns:controls="http://schemas.modernwpf.com/2019"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ElectronicObserver.Window.Wpf.Headquarters"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Name="HeadquartersControl"
d:DesignHeight="250"
Expand Down Expand Up @@ -242,14 +242,21 @@
ToolTip="{Binding Fuel.ToolTip}"
Visibility="{Binding Fuel.Visible}"
>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Fuel.Icon}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>

<common:UseItemIcon Grid.Column="0" Type="Fuel" />
<TextBlock
Grid.Column="1"
HorizontalAlignment="Right"
d:Text="298344"
Foreground="{Binding Fuel.Foreground}"
Text="{Binding Fuel.Text}"
/>
</StackPanel>
</Grid>
</Border>

<Border
Expand All @@ -258,14 +265,21 @@
ToolTip="{Binding Ammo.ToolTip}"
Visibility="{Binding Ammo.Visible}"
>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Ammo.Icon}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>

<common:UseItemIcon Grid.Column="0" Type="Ammo" />
<TextBlock
Grid.Column="1"
HorizontalAlignment="Right"
d:Text="341227"
Foreground="{Binding Ammo.Foreground}"
Text="{Binding Ammo.Text}"
/>
</StackPanel>
</Grid>
</Border>
</WrapPanel>

Expand All @@ -275,14 +289,21 @@
ToolTip="{Binding Steel.ToolTip}"
Visibility="{Binding Steel.Visible}"
>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Steel.Icon}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>

<common:UseItemIcon Grid.Column="0" Type="Steel" />
<TextBlock
Grid.Column="1"
HorizontalAlignment="Right"
d:Text="338637"
Foreground="{Binding Steel.Foreground}"
Text="{Binding Steel.Text}"
/>
</StackPanel>
</Grid>
</Border>

<Border
Expand All @@ -291,14 +312,21 @@
ToolTip="{Binding Bauxite.ToolTip}"
Visibility="{Binding Bauxite.Visible}"
>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Bauxite.Icon}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>

<common:UseItemIcon Grid.Column="0" Type="Bauxite" />
<TextBlock
Grid.Column="1"
HorizontalAlignment="Right"
d:Text="341398"
Foreground="{Binding Bauxite.Foreground}"
Text="{Binding Bauxite.Text}"
/>
</StackPanel>
</Grid>
</Border>
</WrapPanel>
</WrapPanel>
Expand Down

0 comments on commit 918ee61

Please sign in to comment.