@@ -72,6 +72,12 @@ private partial string GetXamlWrapPanel()
72
72
<TextBlock Text="TextBox.FilledBackground" Background="{StaticResource MaterialDesign.Brush.TextBox.FilledBackground}" />
73
73
<TextBlock Text="TextBox.HoverBackground" Background="{StaticResource MaterialDesign.Brush.TextBox.HoverBackground}" />
74
74
<TextBlock Text="TextBox.OutlineInactiveBorder" Background="{StaticResource MaterialDesign.Brush.TextBox.OutlineInactiveBorder}" />
75
+ <TextBlock Text="PasswordBox.HoverBorder" Background="{StaticResource MaterialDesign.Brush.PasswordBox.HoverBorder}" />
76
+ <TextBlock Text="PasswordBox.Border" Background="{StaticResource MaterialDesign.Brush.PasswordBox.Border}" />
77
+ <TextBlock Text="PasswordBox.OutlineBorder" Background="{StaticResource MaterialDesign.Brush.PasswordBox.OutlineBorder}" />
78
+ <TextBlock Text="PasswordBox.FilledBackground" Background="{StaticResource MaterialDesign.Brush.PasswordBox.FilledBackground}" />
79
+ <TextBlock Text="PasswordBox.HoverBackground" Background="{StaticResource MaterialDesign.Brush.PasswordBox.HoverBackground}" />
80
+ <TextBlock Text="PasswordBox.OutlineInactiveBorder" Background="{StaticResource MaterialDesign.Brush.PasswordBox.OutlineInactiveBorder}" />
75
81
<TextBlock Text="GridSplitter.Background" Background="{StaticResource MaterialDesign.Brush.GridSplitter.Background}" />
76
82
<TextBlock Text="GridSplitter.PreviewBackground" Background="{StaticResource MaterialDesign.Brush.GridSplitter.PreviewBackground}" />
77
83
<TextBlock Text="Header.Foreground" Background="{StaticResource MaterialDesign.Brush.Header.Foreground}" />
@@ -142,6 +148,16 @@ private partial string GetXamlWrapPanel()
142
148
<TextBlock Text="MaterialDesignTextFieldBoxHoverBackground" Background="{StaticResource MaterialDesignTextFieldBoxHoverBackground}" />
143
149
<TextBlock Text="MaterialDesignDivider" Background="{StaticResource MaterialDesignDivider}" />
144
150
<TextBlock Text="MaterialDesignTextAreaInactiveBorder" Background="{StaticResource MaterialDesignTextAreaInactiveBorder}" />
151
+ <TextBlock Text="MaterialDesignBody" Background="{StaticResource MaterialDesignBody}" />
152
+ <TextBlock Text="MaterialDesignBodyLight" Background="{StaticResource MaterialDesignBodyLight}" />
153
+ <TextBlock Text="MaterialDesignCheckBoxOff" Background="{StaticResource MaterialDesignCheckBoxOff}" />
154
+ <TextBlock Text="MaterialDesignTextBoxBorder" Background="{StaticResource MaterialDesignTextBoxBorder}" />
155
+ <TextBlock Text="MaterialDesignColumnHeader" Background="{StaticResource MaterialDesignColumnHeader}" />
156
+ <TextBlock Text="MaterialDesignTextAreaBorder" Background="{StaticResource MaterialDesignTextAreaBorder}" />
157
+ <TextBlock Text="MaterialDesignTextFieldBoxBackground" Background="{StaticResource MaterialDesignTextFieldBoxBackground}" />
158
+ <TextBlock Text="MaterialDesignTextFieldBoxHoverBackground" Background="{StaticResource MaterialDesignTextFieldBoxHoverBackground}" />
159
+ <TextBlock Text="MaterialDesignDivider" Background="{StaticResource MaterialDesignDivider}" />
160
+ <TextBlock Text="MaterialDesignTextAreaInactiveBorder" Background="{StaticResource MaterialDesignTextAreaInactiveBorder}" />
145
161
<TextBlock Text="MaterialDesignColumnHeader" Background="{StaticResource MaterialDesignColumnHeader}" />
146
162
<TextBlock Text="MaterialDesignTextAreaBorder" Background="{StaticResource MaterialDesignTextAreaBorder}" />
147
163
<TextBlock Text="MaterialDesignToolBarBackground" Background="{StaticResource MaterialDesignToolBarBackground}" />
@@ -422,6 +438,36 @@ private partial async Task AssertAllThemeBrushesSet(IVisualElement<WrapPanel> pa
422
438
Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
423
439
Assert . Equal ( await GetResourceColor ( "MaterialDesign.Brush.TextBox.OutlineInactiveBorder" ) , textBlockBackground ) ;
424
440
}
441
+ {
442
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" PasswordBox.HoverBorder\" ]" ) ;
443
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
444
+ Assert . Equal ( await GetResourceColor ( "MaterialDesign.Brush.PasswordBox.HoverBorder" ) , textBlockBackground ) ;
445
+ }
446
+ {
447
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" PasswordBox.Border\" ]" ) ;
448
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
449
+ Assert . Equal ( await GetResourceColor ( "MaterialDesign.Brush.PasswordBox.Border" ) , textBlockBackground ) ;
450
+ }
451
+ {
452
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" PasswordBox.OutlineBorder\" ]" ) ;
453
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
454
+ Assert . Equal ( await GetResourceColor ( "MaterialDesign.Brush.PasswordBox.OutlineBorder" ) , textBlockBackground ) ;
455
+ }
456
+ {
457
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" PasswordBox.FilledBackground\" ]" ) ;
458
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
459
+ Assert . Equal ( await GetResourceColor ( "MaterialDesign.Brush.PasswordBox.FilledBackground" ) , textBlockBackground ) ;
460
+ }
461
+ {
462
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" PasswordBox.HoverBackground\" ]" ) ;
463
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
464
+ Assert . Equal ( await GetResourceColor ( "MaterialDesign.Brush.PasswordBox.HoverBackground" ) , textBlockBackground ) ;
465
+ }
466
+ {
467
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" PasswordBox.OutlineInactiveBorder\" ]" ) ;
468
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
469
+ Assert . Equal ( await GetResourceColor ( "MaterialDesign.Brush.PasswordBox.OutlineInactiveBorder" ) , textBlockBackground ) ;
470
+ }
425
471
{
426
472
IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" GridSplitter.Background\" ]" ) ;
427
473
Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
@@ -772,6 +818,56 @@ private partial async Task AssertAllThemeBrushesSet(IVisualElement<WrapPanel> pa
772
818
Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
773
819
Assert . Equal ( await GetResourceColor ( "MaterialDesignTextAreaInactiveBorder" ) , textBlockBackground ) ;
774
820
}
821
+ {
822
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignBody\" ]" ) ;
823
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
824
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignBody" ) , textBlockBackground ) ;
825
+ }
826
+ {
827
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignBodyLight\" ]" ) ;
828
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
829
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignBodyLight" ) , textBlockBackground ) ;
830
+ }
831
+ {
832
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignCheckBoxOff\" ]" ) ;
833
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
834
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignCheckBoxOff" ) , textBlockBackground ) ;
835
+ }
836
+ {
837
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignTextBoxBorder\" ]" ) ;
838
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
839
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignTextBoxBorder" ) , textBlockBackground ) ;
840
+ }
841
+ {
842
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignColumnHeader\" ]" ) ;
843
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
844
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignColumnHeader" ) , textBlockBackground ) ;
845
+ }
846
+ {
847
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignTextAreaBorder\" ]" ) ;
848
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
849
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignTextAreaBorder" ) , textBlockBackground ) ;
850
+ }
851
+ {
852
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignTextFieldBoxBackground\" ]" ) ;
853
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
854
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignTextFieldBoxBackground" ) , textBlockBackground ) ;
855
+ }
856
+ {
857
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignTextFieldBoxHoverBackground\" ]" ) ;
858
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
859
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignTextFieldBoxHoverBackground" ) , textBlockBackground ) ;
860
+ }
861
+ {
862
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignDivider\" ]" ) ;
863
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
864
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignDivider" ) , textBlockBackground ) ;
865
+ }
866
+ {
867
+ IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignTextAreaInactiveBorder\" ]" ) ;
868
+ Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
869
+ Assert . Equal ( await GetResourceColor ( "MaterialDesignTextAreaInactiveBorder" ) , textBlockBackground ) ;
870
+ }
775
871
{
776
872
IVisualElement < TextBlock > textBlock = await panel . GetElement < TextBlock > ( "[Text=\" MaterialDesignColumnHeader\" ]" ) ;
777
873
Color ? textBlockBackground = await textBlock . GetBackgroundColor ( ) ;
@@ -866,6 +962,12 @@ private static IEnumerable<string> GetBrushResourceNames()
866
962
yield return "MaterialDesign.Brush.TextBox.FilledBackground" ;
867
963
yield return "MaterialDesign.Brush.TextBox.HoverBackground" ;
868
964
yield return "MaterialDesign.Brush.TextBox.OutlineInactiveBorder" ;
965
+ yield return "MaterialDesign.Brush.PasswordBox.HoverBorder" ;
966
+ yield return "MaterialDesign.Brush.PasswordBox.Border" ;
967
+ yield return "MaterialDesign.Brush.PasswordBox.OutlineBorder" ;
968
+ yield return "MaterialDesign.Brush.PasswordBox.FilledBackground" ;
969
+ yield return "MaterialDesign.Brush.PasswordBox.HoverBackground" ;
970
+ yield return "MaterialDesign.Brush.PasswordBox.OutlineInactiveBorder" ;
869
971
yield return "MaterialDesign.Brush.GridSplitter.Background" ;
870
972
yield return "MaterialDesign.Brush.GridSplitter.PreviewBackground" ;
871
973
yield return "MaterialDesign.Brush.Header.Foreground" ;
@@ -939,6 +1041,16 @@ private static IEnumerable<string> GetObsoleteBrushResourceNames()
939
1041
yield return "MaterialDesignTextFieldBoxHoverBackground" ;
940
1042
yield return "MaterialDesignDivider" ;
941
1043
yield return "MaterialDesignTextAreaInactiveBorder" ;
1044
+ yield return "MaterialDesignBody" ;
1045
+ yield return "MaterialDesignBodyLight" ;
1046
+ yield return "MaterialDesignCheckBoxOff" ;
1047
+ yield return "MaterialDesignTextBoxBorder" ;
1048
+ yield return "MaterialDesignColumnHeader" ;
1049
+ yield return "MaterialDesignTextAreaBorder" ;
1050
+ yield return "MaterialDesignTextFieldBoxBackground" ;
1051
+ yield return "MaterialDesignTextFieldBoxHoverBackground" ;
1052
+ yield return "MaterialDesignDivider" ;
1053
+ yield return "MaterialDesignTextAreaInactiveBorder" ;
942
1054
yield return "MaterialDesignColumnHeader" ;
943
1055
yield return "MaterialDesignTextAreaBorder" ;
944
1056
yield return "MaterialDesignToolBarBackground" ;
0 commit comments