File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public static Brush GetWallpaperBrush()
32
32
var wallpaperPath = Win32Helper . GetWallpaperPath ( ) ;
33
33
if ( string . IsNullOrEmpty ( wallpaperPath ) || ! File . Exists ( wallpaperPath ) )
34
34
{
35
- App . API . LogInfo ( ClassName , $ "Wallpaper path is invalid: { wallpaperPath } ") ;
35
+ App . API . LogError ( ClassName , $ "Wallpaper path is invalid: { wallpaperPath } ") ;
36
36
var wallpaperColor = GetWallpaperColor ( ) ;
37
37
return new SolidColorBrush ( wallpaperColor ) ;
38
38
}
@@ -61,7 +61,8 @@ public static Brush GetWallpaperBrush()
61
61
if ( originalWidth == 0 || originalHeight == 0 )
62
62
{
63
63
App . API . LogError ( ClassName , $ "Failed to load bitmap: Width={ originalWidth } , Height={ originalHeight } ") ;
64
- return new SolidColorBrush ( Colors . Transparent ) ;
64
+ var wallpaperColor = GetWallpaperColor ( ) ;
65
+ return new SolidColorBrush ( wallpaperColor ) ;
65
66
}
66
67
67
68
// Calculate the scaling factor to fit the image within 800x600 while preserving aspect ratio
You can’t perform that action at this time.
0 commit comments