@@ -37,13 +37,14 @@ public DialogHostStyles(IResourceHost owner) : base(owner) {
37
37
/// <summary>
38
38
/// Lists of resource keys which will be used as defaults for DialogHost.Background property
39
39
/// </summary>
40
- public static IReadOnlyList < string > BackgroundColorKeys { get ; } = [ "SystemControlPageBackgroundChromeLowBrush" ] ;
40
+ public static IReadOnlyList < string > BackgroundColorKeys { get ; } =
41
+ [ "SystemControlBackgroundAltHighBrush" , "MaterialDesignPaper" , "MaterialPaperBrush" ] ;
41
42
42
43
/// <summary>
43
44
/// Lists of resource keys which will be used as defaults for DialogHost.OverlayBackground property
44
45
/// </summary>
45
46
public static IReadOnlyList < string > OverlayBackgroundColorKeys { get ; } =
46
- [ "SystemControlBackgroundAltHighBrush" , "MaterialDesignPaper" , "MaterialPaperBrush "] ;
47
+ [ "SystemControlPageBackgroundChromeLowBrush " ] ;
47
48
48
49
bool IResourceNode . HasResources => true ;
49
50
@@ -57,7 +58,7 @@ public DialogHostStyles(IResourceHost owner) : base(owner) {
57
58
/// if the key is found; otherwise, null.
58
59
/// </param>
59
60
/// <returns>
60
- /// True if the resource if found, otherwise false.
61
+ /// True if the resource is found, otherwise false.
61
62
/// </returns>
62
63
bool IResourceNode . TryGetResource ( object key , ThemeVariant ? theme , out object ? value ) {
63
64
if ( key is "DialogHostBackgroundMixinBrush" ) {
@@ -66,7 +67,7 @@ bool IResourceNode.TryGetResource(object key, ThemeVariant? theme, out object? v
66
67
return true ;
67
68
}
68
69
}
69
-
70
+
70
71
value = Brushes . Black ;
71
72
return true ;
72
73
}
@@ -77,7 +78,7 @@ bool IResourceNode.TryGetResource(object key, ThemeVariant? theme, out object? v
77
78
return true ;
78
79
}
79
80
}
80
-
81
+
81
82
value = Brushes . Black ;
82
83
return true ;
83
84
}
0 commit comments