Skip to content

Commit 75c73b4

Browse files
committed
Application icons improved
1 parent 50284c5 commit 75c73b4

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

Source/NETworkManager/MainWindow.xaml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
</Rectangle.OpacityMask>
9595
</Rectangle>
9696
</StackPanel>
97-
</Button>
97+
</Button>
9898
<Button Command="{Binding OpenWebsiteCommand}" ToolTip="{x:Static localization:Strings.ReportAnIssueOrCreateAFeatureRequest}" CommandParameter="{x:Static resources:Resources.NETworkManager_NewIssueUrl}" Cursor="Hand">
9999
<StackPanel Orientation="Horizontal">
100100
<Rectangle Width="20" Height="20" Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}">
@@ -374,28 +374,42 @@
374374
<Setter Property="ToolTip" Value="{x:Null}" />
375375
</MultiDataTrigger.Setters>
376376
</MultiDataTrigger>
377+
<DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}" Value="True" >
378+
<Setter Property="Background" Value="{DynamicResource GrayBrush8}" />
379+
</DataTrigger>
377380
</Style.Triggers>
378381
</Style>
379382
</Grid.Style>
380-
<Rectangle Grid.Column="0" Width="24" Height="24">
383+
<Rectangle Grid.Column="0" Width="4" Height="48" HorizontalAlignment="Left">
384+
<Rectangle.Style>
385+
<Style TargetType="{x:Type Rectangle}">
386+
<Style.Triggers>
387+
<DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}" Value="True" >
388+
<Setter Property="Fill" Value="{DynamicResource AccentColorBrush}" />
389+
</DataTrigger>
390+
</Style.Triggers>
391+
</Style>
392+
</Rectangle.Style>
393+
</Rectangle>
394+
<Rectangle Grid.Column="0" Width="24" Height="24" Margin="0,0,-2,0">
381395
<Rectangle.OpacityMask>
382396
<VisualBrush Stretch="Uniform" Visual="{Binding Name, Converter={StaticResource ApplicationNameToIconConverter}}" />
383397
</Rectangle.OpacityMask>
384398
<Rectangle.Style>
385399
<Style TargetType="{x:Type Rectangle}">
386400
<Setter Property="Fill" Value="{DynamicResource GrayBrush3}" />
387401
<Style.Triggers>
388-
<DataTrigger Binding="{Binding Path=IsMouseOver,RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}" Value="True" >
402+
<DataTrigger Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}" Value="True" >
389403
<Setter Property="Fill" Value="{DynamicResource GrayBrush5}" />
390404
</DataTrigger>
391-
<DataTrigger Binding="{Binding Path=IsSelected,RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}" Value="True" >
405+
<DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}" Value="True" >
392406
<Setter Property="Fill" Value="{DynamicResource AccentColorBrush}" />
393407
</DataTrigger>
394408
</Style.Triggers>
395409
</Style>
396410
</Rectangle.Style>
397411
</Rectangle>
398-
<TextBlock Grid.Column="1" Text="{Binding Name, Converter={StaticResource ApplicationNameToTranslatedStringConverter}}">
412+
<TextBlock Grid.Column="1" Text="{Binding Name, Converter={StaticResource ApplicationNameToTranslatedStringConverter}}" Margin="2,0,0,0">
399413
<TextBlock.Style>
400414
<Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource HeaderTextBlock}">
401415
<Setter Property="Foreground" Value="{DynamicResource GrayBrush3}" />

0 commit comments

Comments
 (0)