-
Notifications
You must be signed in to change notification settings - Fork 896
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
Refactoring brave theme related modules #2905
Conversation
5317fe9
to
346db29
Compare
d4f484b
to
bea8809
Compare
544decb
to
6092379
Compare
Enable webui/base native dark mode on platforms that doesn't support system dark mode like win7/win8/linux/mac high sierra.
gtk theme is considered as a different theme type. Also, classic theme is set by default insted of gtk theme for using whole brave theme as a default.
e561add
to
6bc2c3f
Compare
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.
Verified all code works as expected! Changes look good to me. Nice patch cleanup too!
@bridiver can you give this a review too? 😄
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.
Thanks for fixing all the linux issues and making the code more understandable @simonhong.
I noticed in your screenshot that the Windows titlebar seems lighter than I remember seeing. Is that a change from this branch?
@petemill Our title bar background is not used on Win8. I don't know the reason for now. Needs investigate. Maybe Win8 doesn't allow it? (not sure). I think it has been around for long time. |
Enable dark mode of webui/base native ui on platforms that doesn't support system dark mode like win7/win8/linux/mac high sierra.
On linux, gtk theme is considered as a different theme.
So, when user chooses gtk theme instead of classic, it is respected instead of brave theme color for native.
Fix brave/brave-browser#3793
Fix brave/brave-browser#5098
Fix brave/brave-browser#4637
Fix brave/brave-browser#965
Dark at Ubuntu
gtk theme at Ubuntu with dark
classic theme at Ubuntu with dark
Dark at Win8
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
yarn test brave_browser_tests --filter=BraveThemeServiceTest.NativeThemeObserverTest
Reviewer Checklist:
After-merge Checklist:
changes has landed on.