Support detection of light and dark system colors (#164933)
Part of https://github.com/flutter/flutter/issues/118853 This PR is an enhancement to https://github.com/flutter/flutter/pull/163335 to provide detection of system colors for both light and dark mode. This is needed for the construction of a [`highContrastTheme`](https://api.flutter.dev/flutter/material/MaterialApp/highContrastTheme.html) and [`highContrastDarkTheme`](https://api.flutter.dev/flutter/material/MaterialApp/highContrastDarkTheme.html).
Showing
- engine/src/flutter/lib/ui/platform_dispatcher.dart 60 additions, 25 deletionsengine/src/flutter/lib/ui/platform_dispatcher.dart
- engine/src/flutter/lib/web_ui/lib/platform_dispatcher.dart 33 additions, 54 deletionsengine/src/flutter/lib/web_ui/lib/platform_dispatcher.dart
- engine/src/flutter/lib/web_ui/lib/src/engine/high_contrast.dart 41 additions, 33 deletions.../src/flutter/lib/web_ui/lib/src/engine/high_contrast.dart
- engine/src/flutter/lib/web_ui/test/engine/high_contrast_test.dart 82 additions, 47 deletions...rc/flutter/lib/web_ui/test/engine/high_contrast_test.dart
Please register or sign in to comment