Skip to content

Commit

Permalink
(GH-3587) New styles MahApps.Styles.ToolBar and MahApps.Styles.ToolBa…
Browse files Browse the repository at this point in the history
…rTray
  • Loading branch information
punker76 committed May 17, 2020
1 parent 99ce36e commit 4f5b1fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MahApps.Metro/Styles/Controls.Toolbar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
</Style>

<!-- Style the toolbar -->
<Style x:Key="{x:Type ToolBar}" TargetType="{x:Type ToolBar}">
<Style x:Key="MahApps.Styles.ToolBar" TargetType="{x:Type ToolBar}">
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="Template">
Expand Down Expand Up @@ -322,7 +322,7 @@
</Style>

<!-- Style the toolbar tray -->
<Style x:Key="{x:Type ToolBarTray}" TargetType="{x:Type ToolBarTray}">
<Style x:Key="MahApps.Styles.ToolBarTray" TargetType="{x:Type ToolBarTray}">
<Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Window.Background}" />
</Style>

Expand Down
2 changes: 2 additions & 0 deletions src/MahApps.Metro/Styles/Controls.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,7 @@
<Style BasedOn="{StaticResource MahApps.Styles.StatusBarItem}" TargetType="StatusBarItem" />
<Style BasedOn="{StaticResource MahApps.Styles.ScrollViewer}" TargetType="ScrollViewer" />
<Style BasedOn="{StaticResource MahApps.Styles.GridSplitter}" TargetType="GridSplitter" />
<Style BasedOn="{StaticResource MahApps.Styles.ToolBar}" TargetType="ToolBar" />
<Style BasedOn="{StaticResource MahApps.Styles.ToolBarTray}" TargetType="ToolBarTray" />

</ResourceDictionary>

0 comments on commit 4f5b1fe

Please # to comment.