Skip to content

Commit

Permalink
Add TaskListWrapPanel resource (#256)
Browse files Browse the repository at this point in the history
For centering taskbar items
  • Loading branch information
dremin committed Mar 8, 2023
1 parent f4da734 commit 423f8cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RetroBar/Controls/TaskList.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
dd:DragDrop.DragDropContext="TaskList">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel>
<WrapPanel Style="{DynamicResource TaskListWrapPanel}">
<WrapPanel.Orientation>
<Binding Converter="{StaticResource orientationConverter}"
Path="Orientation"
Expand Down
4 changes: 4 additions & 0 deletions RetroBar/Themes/System.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@
</Style.Triggers>
</Style>

<Style x:Key="TaskListWrapPanel"
TargetType="WrapPanel">
</Style>

<Style x:Key="ClassicFocusVisual">
<Setter Property="Control.Template">
<Setter.Value>
Expand Down

0 comments on commit 423f8cd

Please sign in to comment.