-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add algorithmic darkening for WebView. #9080
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
Add algorithmic darkening for WebView. #9080
Conversation
Someone from my team will review this shortly, thank you for the contribution! Once the jobs pass maybe you could squash commits? I don't think we need a separate commit for linting fixes. |
f49dc41
to
8fbcee5
Compare
Hi @kewisch, One note - the Should I apply the suggestion and run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @terofeev, thank you for your contribution! The dark mode rendering has greatly improved with this change!
I have left a few comments for your consideration. Let me know if you have any questions.
legacy/ui/legacy/src/main/java/com/fsck/k9/view/WebViewExtensions.kt
Outdated
Show resolved
Hide resolved
legacy/ui/legacy/src/main/java/com/fsck/k9/view/WebViewExtensions.kt
Outdated
Show resolved
Hide resolved
8fbcee5
to
d041642
Compare
Hi @rafaeltonholo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the contribution!
d041642
to
500b4cf
Compare
@rafaeltonholo the CI build failed due to an outdated unit test related to dark mode: |
Fixes #8992
Apply algorithmic darkening if WebView supports it.
If not, try to use force dark instead.
Also, remove CSS styling for dark mode, as it breaks the new algorithmic darkening.
Result