Skip to content

Commit 541ec5c

Browse files
authored
Merge pull request #1128 from BornToBeRoot/feature/tabs-expander-redesign
Feature/tabs expander redesign
2 parents 755cf46 + 495560d commit 541ec5c

File tree

7 files changed

+1169
-1245
lines changed

7 files changed

+1169
-1245
lines changed

Source/NETworkManager/MainWindow.xaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@
188188
</Style>
189189
</Grid.Style>
190190
<Border Grid.Row="0" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" BorderThickness="0,0,0,1" Background="Transparent">
191-
192191
<Grid>
193192
<Grid.ColumnDefinitions>
194193
<ColumnDefinition Width="*" />
@@ -225,9 +224,9 @@
225224
</Style.Triggers>
226225
</Style>
227226
</Button.Style>
228-
<Rectangle Width="16" Height="16">
227+
<Rectangle Grid.Column="0" Width="16" Height="16" Margin="0,0,-2,0">
229228
<Rectangle.OpacityMask>
230-
<VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronDoubleRight}" />
229+
<VisualBrush Stretch="Uniform" Visual="{iconPacks:VaadinIcons Kind=AngleDoubleRight}" />
231230
</Rectangle.OpacityMask>
232231
<Rectangle.Style>
233232
<Style TargetType="{x:Type Rectangle}">
@@ -564,7 +563,7 @@
564563
<ColumnDefinition Width="48" />
565564
<ColumnDefinition Width="*" />
566565
</Grid.ColumnDefinitions>
567-
<Rectangle Grid.Column="0" Width="24" Height="24">
566+
<Rectangle Grid.Column="0" Width="24" Height="24" Margin="0,0,-2,0">
568567
<Rectangle.OpacityMask>
569568
<VisualBrush Stretch="Uniform" Visual="{iconPacks:MaterialLight Kind=Cog}" />
570569
</Rectangle.OpacityMask>
@@ -641,7 +640,7 @@
641640
</Grid.Style>
642641
<Grid>
643642
<Grid.RowDefinitions>
644-
<RowDefinition Height="32" />
643+
<RowDefinition Height="49" />
645644
<RowDefinition Height="*" />
646645
</Grid.RowDefinitions>
647646
<Border Grid.Row="0" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" BorderThickness="0,0,0,1">

Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -64,33 +64,7 @@
6464
</Style>
6565

6666
<Style x:Key="ProfileExpanderOpen" BasedOn="{StaticResource MahApps.Styles.ToggleButton.ExpanderHeader.Down}" TargetType="{x:Type ToggleButton}">
67-
<Setter Property="Template" Value="{x:Null}">
68-
<!--
69-
<Setter.Value>
70-
<ControlTemplate TargetType="{x:Type ToggleButton}">
71-
72-
<Border Padding="{TemplateBinding Padding}"
73-
Background="{TemplateBinding Background}"
74-
BorderBrush="{StaticResource MahApps.Brushes.Gray8}"
75-
BorderThickness="0,0,0,1">
76-
<Grid Background="Transparent" SnapsToDevicePixels="False" Height="27">
77-
<Rectangle Grid.Column="0" x:Name="Chevron" Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}" Margin="0,0,10,0" VerticalAlignment="Center" HorizontalAlignment="Center">
78-
<Rectangle.OpacityMask>
79-
<VisualBrush Stretch="Uniform" Visual="{iconPacks:Entypo Kind=ChevronThinLeft}" />
80-
</Rectangle.OpacityMask>
81-
</Rectangle>
82-
</Grid>
83-
</Border>
84-
85-
<ControlTemplate.Triggers>
86-
<Trigger Property="IsMouseOver" Value="True">
87-
<Setter TargetName="Chevron" Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray5}"/>
88-
</Trigger>
89-
</ControlTemplate.Triggers>
90-
</ControlTemplate>
91-
</Setter.Value>
92-
-->
93-
</Setter>
67+
<Setter Property="Template" Value="{x:Null}" />
9468
</Style>
9569

9670
<Style x:Key="ProfileExpanderClosed" BasedOn="{StaticResource MahApps.Styles.ToggleButton.ExpanderHeader.Right}" TargetType="{x:Type ToggleButton}">
@@ -106,7 +80,7 @@
10680
<RowDefinition Height="Auto" />
10781
<RowDefinition Height="*" />
10882
</Grid.RowDefinitions>
109-
<Rectangle Grid.Row="0" x:Name="Chevron" Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}" Margin="10,6,10,10" VerticalAlignment="Center" HorizontalAlignment="Center">
83+
<Rectangle Grid.Row="0" x:Name="Chevron" Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}" Margin="10,15,10,10" VerticalAlignment="Center" HorizontalAlignment="Center">
11084
<Rectangle.OpacityMask>
11185
<VisualBrush Stretch="Uniform" Visual="{iconPacks:Entypo Kind=ChevronThinRight}" />
11286
</Rectangle.OpacityMask>

Source/NETworkManager/Resources/Styles/WindowStyles.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
<Setter Property="GlowBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" />
77
<Setter Property="NonActiveGlowBrush" Value="Transparent" />
88
<Setter Property="TitleForeground" Value="{DynamicResource MahApps.Brushes.Gray3}" />
9+
<Setter Property="ShowTitleBar" Value="True" />
910
</Style>
1011
</ResourceDictionary>

0 commit comments

Comments
 (0)