Skip to content

Commit 2212c00

Browse files
authored
fix: macOS color mode sync (#74)
1 parent 746585c commit 2212c00

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/theme.dart

+6
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ class AppTheme extends ChangeNotifier {
9494
: const Color(0xFF202020).withOpacity(0.05),
9595
dark: brightness == Brightness.dark,
9696
);
97+
98+
if (Platform.isMacOS) {
99+
Window.overrideMacOSBrightness(
100+
dark: brightness == Brightness.dark,
101+
);
102+
}
97103
}
98104
}
99105

0 commit comments

Comments
 (0)