Skip to content

Commit 1b2ebb9

Browse files
committed
Reverting menu styling
1 parent 6425d05 commit 1b2ebb9

File tree

1 file changed

+11
-27
lines changed

1 file changed

+11
-27
lines changed

WolvenKit/Views/Shell/MenuBarView.xaml

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
xmlns:reactiveUi="http://reactiveui.net"
1010
xmlns:shell="clr-namespace:WolvenKit.App.ViewModels.Shell;assembly=WolvenKit.App"
1111
xmlns:local="clr-namespace:WolvenKit.Views.Templates"
12-
mc:Ignorable="d"
13-
DataContext="{Binding ViewModel,
14-
RelativeSource={RelativeSource Self}}">
12+
mc:Ignorable="d">
1513
<UserControl.Resources>
1614
<ResourceDictionary>
1715
<Style TargetType="{x:Type local:IconBox}">
18-
<Setter Property="Foreground" Value="{StaticResource WolvenKitLabelBrush}" />
1916
<Setter Property="Opacity" Value="1.0" />
17+
2018
<Style.Triggers>
2119
<DataTrigger
2220
Binding="{Binding Path=IsEnabled,
@@ -26,24 +24,6 @@
2624
</DataTrigger>
2725
</Style.Triggers>
2826
</Style>
29-
30-
<Style TargetType="{x:Type MenuItem}">
31-
<Setter Property="FontSize" Value="{DynamicResource WolvenKitFontSubTitle}" />
32-
33-
<Setter Property="HeaderTemplate">
34-
<Setter.Value>
35-
<DataTemplate>
36-
<TextBlock
37-
Margin="{DynamicResource WolvenKitMarginSmallRight}"
38-
VerticalAlignment="Center"
39-
FontSize="{DynamicResource WolvenKitFontSubTitle}"
40-
Text="{Binding}" />
41-
</DataTemplate>
42-
</Setter.Value>
43-
</Setter>
44-
<Setter Property="Margin" Value="{DynamicResource WolvenKitMarginSmallVertical}" />
45-
</Style>
46-
4727
</ResourceDictionary>
4828
</UserControl.Resources>
4929

@@ -57,11 +37,13 @@
5737
x:Name="HomeButton"
5838
Margin="1,0"
5939
Padding="12,5"
40+
FontSize="{DynamicResource WolvenKitFontSubTitle}"
6041
Header="HOME" />
6142

6243
<!-- File -->
6344
<MenuItem
6445
Padding="{DynamicResource WolvenKitMarginHorizontal}"
46+
FontSize="{DynamicResource WolvenKitFontSubTitle}"
6547
Header="File">
6648
<MenuItem
6749
x:Name="MenuItemNewFile"
@@ -232,6 +214,7 @@
232214
<!-- Project -->
233215
<MenuItem
234216
Padding="{DynamicResource WolvenKitMarginHorizontal}"
217+
FontSize="{DynamicResource WolvenKitFontSubTitle}"
235218
Header="Project">
236219

237220
<MenuItem
@@ -378,6 +361,7 @@
378361
<!-- Build -->
379362
<MenuItem
380363
Padding="{DynamicResource WolvenKitMarginHorizontal}"
364+
FontSize="{DynamicResource WolvenKitFontSubTitle}"
381365
Header="Build">
382366
<!-- Pack -->
383367
<MenuItem
@@ -532,10 +516,8 @@
532516
<!-- View -->
533517
<MenuItem
534518
Padding="{DynamicResource WolvenKitMarginHorizontal}"
535-
Header="View"
536-
537-
Margin="{DynamicResource WolvenkitMarginTop}"
538-
>
519+
FontSize="{DynamicResource WolvenKitFontSubTitle}"
520+
Header="View">
539521
<MenuItem
540522
x:Name="ProjectExplorerCheckbox"
541523
Margin="{DynamicResource WolvenKitMenuBarItemMarginHorizontal}"
@@ -582,7 +564,6 @@
582564

583565
<MenuItem
584566
Margin="{DynamicResource WolvenKitMenuBarItemMarginHorizontal}"
585-
Padding="{DynamicResource WolvenKitMarginSmallVertical}"
586567
Header="Show File Preview"
587568
IsCheckable="True"
588569
IsChecked="{Binding SettingsManager.ShowFilePreview,
@@ -664,6 +645,7 @@
664645
<!-- Tools -->
665646
<MenuItem
666647
Padding="{DynamicResource WolvenKitMarginHorizontal}"
648+
FontSize="{DynamicResource WolvenKitFontSubTitle}"
667649
Header="Tools">
668650
<MenuItem
669651
Margin="{DynamicResource WolvenKitMenuBarItemMarginHorizontal}"
@@ -765,6 +747,7 @@
765747
<!-- Game -->
766748
<MenuItem
767749
Padding="{DynamicResource WolvenKitMarginHorizontal}"
750+
FontSize="{DynamicResource WolvenKitFontSubTitle}"
768751
Header="Game">
769752
<MenuItem
770753
x:Name="ToolbarLaunchButton"
@@ -811,6 +794,7 @@
811794
<!-- Extensions -->
812795
<MenuItem
813796
Padding="{DynamicResource WolvenKitMarginHorizontal}"
797+
FontSize="{DynamicResource WolvenKitFontSubTitle}"
814798
Header="Extensions">
815799
<MenuItem
816800
x:Name="MenuItemShowPluginTool"

0 commit comments

Comments
 (0)