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
Prevent system theme change affect brave's theme in linux #18922
Conversation
fix brave/brave-browser#30766 Recently, upstream introduced DarkModeManagerLinux that monitor platform's color scheme change. If that change noti arrives after initializing brave theme with brave's theme option, brave's activated theme could be different with brave's option. When we have sysem default theme option in linux also, we could enable.
Prevent system theme change affect brave's theme in linux
Prevent system theme change affect brave's theme in linux
Verification PASSED on
Verified that theming is working as expected on Ensured that Brave is always using the correct theming when switching the OS theme. Examples of cases:
Also ensured that
|
@simonhong @goodov It's good to fix the inconsistency with Brave's setting, but maybe it should be a a tri-state switch instead (use-system, dark, light)? There also seems to be system dark-mode support on MacOS and Windows.
|
I find it quite disappointing that brave opted to disable this feature rather than making it properly accessible in the settings. |
I guess this is the relevant feature request: brave/brave-browser#14685 |
@rebron I think we need to consider about adding |
I've got half a mind to submit a PR for this myself after waiting for years for this feature and given that chromium has finally implemented it, but I've a hard time navigating the codebase. Could you perhaps outline in broad strokes what needs to be done, which files need editing would also be helpful. |
Any chance we see this regression fixed? It's an absolute deal breaker, completely stopped using the browser for now. |
I would also like to do this. Trying to get in running on my machine |
fix brave/brave-browser#30766
Recently, upstream introduced DarkModeManagerLinux that monitor platform's color scheme change.
If that change noti arrives after initializing brave theme with brave's theme option,
brave's activated theme could be different with brave's option.
When we have sysem default theme option in linux also, we could enable.
Resolves
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Please refer to the issue for various experiences from many linux users.
STR 1.
NOTE: It seems it's not 100% reproducible. Maybe it depends on distributions/window manager and etc...
STR 2.