Skip to content

Commit

Permalink
Fix ItemContainer borders not reacting to theme changes (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
miroiu authored Nov 25, 2024
1 parent 4d3b8f1 commit c7882fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
> - Added PushedAreaStyle, PushedAreaOrientation and IsPushingItems dependency properties to NodifyEditor
> - Added NodifyEditor.SnapToGrid utility function
> - Bugfixes:
> - Fixed ItemContainer.BorderBrush and ItemContainer.SelectedBrush not reacting to theme changes
#### **Version 6.5.0**

Expand Down
2 changes: 1 addition & 1 deletion Nodify/Themes/Brushes.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
TileMode="Tile">
<DrawingBrush.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="{DynamicResource ItemContainer.BorderBrush}">
<GeometryDrawing Brush="{StaticResource ItemContainer.BorderBrush}">
<GeometryDrawing.Geometry>
<GeometryGroup>
<RectangleGeometry Rect="0 0 50 50" />
Expand Down
4 changes: 2 additions & 2 deletions Nodify/Themes/Controls.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
<Setter Property="HighlightBrush"
Value="{StaticResource ItemContainer.HighlightBrush}" />
<Setter Property="BorderBrush"
Value="{StaticResource ItemContainer.BorderBrush}" />
Value="{DynamicResource ItemContainer.BorderBrush}" />
<Setter Property="SelectedBrush"
Value="{StaticResource ItemContainer.SelectedBrush}" />
Value="{DynamicResource ItemContainer.SelectedBrush}" />
</Style>

<!--DECORATOR CONTAINER-->
Expand Down

0 comments on commit c7882fd

Please sign in to comment.