Skip to content

Commit

Permalink
Catalogue view tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuubari committed Nov 10, 2015
1 parent a1eb144 commit 120afd7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
Value="0,0,0,1" />
<Setter Property="FocusVisualStyle"
Value="{x:Null}" />
<Setter Property="HorizontalContentAlignment"
Value="Stretch" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListViewItem}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@
<DataTemplate DataType="{x:Type viewModels:SlotItemCounter}">
<TextBlock Text="{Binding Count, Mode=OneWay}"
Margin="0,4"
Foreground="{DynamicResource ActiveForegroundBrushKey}"
HorizontalAlignment="Right"/>
TextAlignment="Right"
Foreground="{DynamicResource ActiveForegroundBrushKey}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
Expand Down Expand Up @@ -318,14 +318,22 @@
</TextBlock>
</Viewbox.ToolTip>
</Viewbox>
<TextBlock Width="83"
Margin="0,4"
TextAlignment="Center">
<Run Text="{Binding Count, Mode=OneWay}"
Foreground="{DynamicResource ActiveForegroundBrushKey}" />
<Run Text="{Binding Remainder, StringFormat=({0}), Mode=OneWay}"
FontSize="11" />
</TextBlock>
<Grid Width="81"
Margin="0,4,1,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock TextAlignment="Right"
Margin="2,0,8,0"
Text="{Binding Count, Mode=OneWay}"
Foreground="{DynamicResource ActiveForegroundBrushKey}" />
<TextBlock Grid.Column="1"
TextAlignment="Left"
Margin="-2,0,2,0"
Text="{Binding Remainder, StringFormat=({0}), Mode=OneWay}"
FontSize="11" />
</Grid>
<ItemsControl ItemsSource="{Binding Ships}">
<ItemsControl.Template>
<ControlTemplate TargetType="{x:Type ItemsControl}">
Expand All @@ -335,7 +343,7 @@
</ItemsControl.Template>
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Margin="0,4,18,0">
<TextBlock Margin="4,4,18,0">
<Run Text="{Binding Ship.Info.Name, Mode=OneWay}"
Foreground="{DynamicResource ActiveForegroundBrushKey}" />
<Run Text="{Binding Ship.Level, StringFormat=Lv.{0}, Mode=OneWay}"
Expand Down

0 comments on commit 120afd7

Please sign in to comment.