-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Win32 template: Add dark theme support #88520
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
This PR adds the dark theme support for both windows and winuwp engine, based on flutter/flutter#54612. On Win32: using a registry value that is not documented. (I tested on Windows 10.0.19043.1165) On UWP: using default background color. (I couldn't find WinRT API that returns dark/light directly, without xaml package.) Flutter PR for win32: flutter/flutter#88520. This PR will close flutter/flutter#54612. This PR will complete one item in flutter/flutter#70214.
This PR adds the dark theme support for both windows and winuwp engine, based on flutter/flutter#54612. On Win32: using a registry value that is not documented. (I tested on Windows 10.0.19043.1165) On UWP: using default background color. (I couldn't find WinRT API that returns dark/light directly, without xaml package.) Flutter PR for win32: flutter/flutter#88520. This PR will close flutter/flutter#54612. This PR will complete one item in flutter/flutter#70214.
9f7d524
to
3eb3ab6
Compare
Marking this as a draft since it depends on https://github.com/flutter/engine/pull/29303/files landing. Feel free to mark active once that change has landed and rolled to the framework. |
This PR seems only depends on flutter/engine#28131 which already be merged. I tested this on latest master branch and it works well. Maybe this PR can be consider ready for review? |
The function of this PR will be replaced with flutter/engine#29303 because flutter/engine#29303 works without updating existing project created from template. I've forgotten to close this PR so I'll close this now. Sorry. |
This PR changes
windows
template to receive theme (dark/light) update and to apply brightness to flutter by using the function added in flutter/engine#28131.Please merge after installation bundle contains flutter/engine#28131.
After this PR is merged, please make announcement to win32 user that they need to apply this patch to existing applications to use the feature of this PR.
Engine PR: flutter/engine#28131
No changes in
flutter/test
.Pre-launch Checklist
///
).