Skip to content

Commit ea86cba

Browse files
fix: sizeof syntax
1 parent f70d453 commit ea86cba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BlazorDesktop/Wpf/BlazorDesktopWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,12 @@ private void UpdateTheme()
334334
{
335335
if (ShouldSystemUseDarkMode())
336336
{
337-
_ = DwmSetWindowAttribute(new WindowInteropHelper(this).Handle, 20, [1], Marshal.SizeOf(typeof(int)));
337+
_ = DwmSetWindowAttribute(new WindowInteropHelper(this).Handle, 20, [1], Marshal.SizeOf<int>());
338338
Background = new SolidColorBrush(Color.FromRgb(25, 25, 25));
339339
}
340340
else
341341
{
342-
_ = DwmSetWindowAttribute(new WindowInteropHelper(this).Handle, 20, [0], Marshal.SizeOf(typeof(int)));
342+
_ = DwmSetWindowAttribute(new WindowInteropHelper(this).Handle, 20, [0], Marshal.SizeOf<int>());
343343
Background = new SolidColorBrush(Color.FromRgb(255, 255, 255));
344344
}
345345
}

0 commit comments

Comments
 (0)