Skip to content

Commit cab0d0b

Browse files
miroiuluojunyuan
authored andcommitted
Fix ItemContainer borders not reacting to theme changes (miroiu#151)
1 parent f0e6837 commit cab0d0b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
> - Breaking Changes:
66
> - Features:
77
> - Bugfixes:
8+
> - Fixed ItemContainer.BorderBrush and ItemContainer.SelectedBrush not reacting to theme changes
89
910
#### **Version 6.5.0**
1011

Nodify/Themes/Brushes.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
TileMode="Tile">
3434
<DrawingBrush.Drawing>
3535
<DrawingGroup>
36-
<GeometryDrawing Brush="{DynamicResource ItemContainer.BorderBrush}">
36+
<GeometryDrawing Brush="{StaticResource ItemContainer.BorderBrush}">
3737
<GeometryDrawing.Geometry>
3838
<GeometryGroup>
3939
<RectangleGeometry Rect="0 0 50 50" />

Nodify/Themes/Controls.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
<Setter Property="HighlightBrush"
3636
Value="{StaticResource ItemContainer.HighlightBrush}" />
3737
<Setter Property="BorderBrush"
38-
Value="{StaticResource ItemContainer.BorderBrush}" />
38+
Value="{DynamicResource ItemContainer.BorderBrush}" />
3939
<Setter Property="SelectedBrush"
40-
Value="{StaticResource ItemContainer.SelectedBrush}" />
40+
Value="{DynamicResource ItemContainer.SelectedBrush}" />
4141
</ControlTheme>
4242

4343
<!--DECORATOR CONTAINER-->

0 commit comments

Comments
 (0)