-
Notifications
You must be signed in to change notification settings - Fork 888
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
Development no longer restricted to dark theme only #365
Conversation
Theme user preference can apply to any build. Renames 'DevChannel' theme to DarkUi and 'ReleaseChannel' theme to LightUi. Fix brave/brave-browser#863
f362958
to
77031db
Compare
Updated to add cli flag: |
How about control development theme mode also by using setting options instead of cli? |
@simonhong that is exactly the intention of this PR - it removes the The CLI flag is an additional tool to aid productivity when developing UI features so that a developer can easily switch between light and dark without having to open settings page |
Ah, I just concerned the adding of cli. |
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
common/brave_switches.cc
Outdated
@@ -23,4 +23,6 @@ const char kDisablePDFJSExtension[] = "disable-pdfjs-extension"; | |||
// Allows disabling the Tor client updater extension. | |||
const char kDisableTorClientUpdaterExtension[] = "disable-tor-client-updater-extension"; | |||
|
|||
const char kUiMode[] = "ui-mode"; |
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.
nit: how about adding possible option values in the comment?
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.
good spot @simonhong - I added a comment now. Please could you re-review as it was automatically discarded.
Thanks @simonhong - I updated the PR description to explain this point |
--ui-mode=light --ui-mode=dark Overrides preference or channel default
4b57a72
to
6c69116
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.
LGTM
Provide a script to do GRD string upgrades for Chromium rebasing
Provide a script to do GRD string upgrades for Chromium rebasing
Provide a script to do GRD string upgrades for Chromium rebasing
Theme user preference can apply to any development build, not just official build, so that we can actually develop with the different themes and use the setting in development builds.
Also adds cli flag:
ui-mode={light,dark}
This overrides the light / dark / default setting to aid developer productivity when testing UI changes on both modes (developer doesn't have to open settings page and make a change in order to switch between the two options).
Renames 'DevChannel' theme to DarkUi and 'ReleaseChannel' theme to LightUi.
Fix brave/brave-browser#863
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist: