Skip to content
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

General UI colors - Dark, Light, PrivateDark, PrivateLight #670

Closed
petemill opened this issue Aug 1, 2018 · 7 comments · Fixed by brave/brave-core#391
Closed

General UI colors - Dark, Light, PrivateDark, PrivateLight #670

petemill opened this issue Aug 1, 2018 · 7 comments · Fixed by brave/brave-core#391
Assignees
Labels
design A design change, especially one which needs input from the design team feature/user-interface All UI related QA Pass-Linux QA Pass-macOS QA Pass-Win64 QA/Yes

Comments

@petemill
Copy link
Member

petemill commented Aug 1, 2018

Description

Provide built-in theme properties. These are mainly toolbar colors. https://cs.chromium.org/chromium/src/chrome/browser/themes/theme_properties.cc?q=theme_prop&sq=package:chromium&g=0&l=1

Test plan

Dark

  • Launch via dark mode --ui_mode=dark
  • Toolbar colors should be dark
  • Omnibox and dropdown colors should be dark
  • Open Private Window
  • Toolbar colors should be purple
  • Omnibox and dropdown colors should be purple

Light

  • Launch via dark mode --ui_mode=light
  • Toolbar colors should be light
  • Omnibox and dropdown colors should be light
  • Open Private Window
  • Toolbar colors should be purple
  • Omnibox and dropdown colors should be purple
@petemill petemill added the design A design change, especially one which needs input from the design team label Aug 1, 2018
@petemill petemill added this to the Releasable builds milestone Aug 1, 2018
@petemill petemill self-assigned this Aug 1, 2018
@petemill petemill changed the title Built-in theme properties General UI colors - Dark, Light, PrivateDark, PrivateLight Aug 20, 2018
@bbondy bbondy added the QA/Yes label Sep 10, 2018
@srirambv srirambv added feature/user-interface All UI related and removed feature/ui labels Sep 18, 2018
@srirambv
Copy link
Contributor

On Linux the command line switch doesn't make any changes to theme. @kjozwiak also was not able to see changes using the command line switch. Manually setting the Brave colour works just fine.

@bsclifton
Copy link
Member

@srirambv do other command line options work OK on Linux? ex: disable hardware acceleration, etc

@srirambv
Copy link
Contributor

@bsclifton tired brave-browser-beta --disable_gpu but Enable hardware acceleration was still enabled on browser launch

@kjozwiak
Copy link
Member

kjozwiak commented Oct 4, 2018

@srirambv did we create a new issue regarding command line options not working?

I tried going through the following under Ununtu 18.04 x64 using 0.55.10 Chromium: 70.0.3538.22 but couldn't get the command line options to work:

  • brave-browser-beta --disable_gpu
  • brave-browser-beta --ui_mode=dark
  • brave-browser-beta --ui_mode=light

I also tried on macOS on 0.55.x that was built form source but couldn't get that working either. Tried the following:

src/out/Debug/Brave\ Browser\ Development.app/Contents/MacOS/Brave\ Browser\ Development --ui_mode=light --disable_gpu

@bsclifton @petemill are we doing something wrong here or is this broken and requires a new issue?

@srirambv
Copy link
Contributor

srirambv commented Oct 4, 2018

No issue logged yet. I will test from source on Linux with those command line parameters and then log it.

@LaurenWags
Copy link
Member

@petemill does this need to be tested with the command line parameters or can it be tested by switching between the themes in settings?

@srirambv
Copy link
Contributor

srirambv commented Oct 18, 2018

Verification Passed on

Brave 0.55.17 Chromium: 70.0.3538.67 (Official Build) (64-bit)
Revision 9ab0cfab84ded083718d3a4ff830726efd38869f-refs/branch-heads/3538@{#1002}
OS Linux
  • Verified launching browser with npm run start -- --ui_mode=light had omnibar and dropdown in light
  • Verified launching browser with npm run start -- --ui_mode=dark had omnibar and dropdown in dark

Went through verification using the following build under macOS 10.13.6 x64 - PASSED

Brave 0.55.17 Chromium: 70.0.3538.67 (Official Build) (64-bit)
Revision 9ab0cfab84ded083718d3a4ff830726efd38869f-refs/branch-heads/3538@{#1002}
OS Mac OS X
  • Verified launching browser with npm run start -- --ui_mode=light had omnibar and dropdown in light
  • Verified launching browser with npm run start -- --ui_mode=dark had omnibar and dropdown in dark

Verification passed on

Brave 0.57.1 Chromium: 70.0.3538.67 (Official Build) dev (64-bit)
Revision 9ab0cfab84ded083718d3a4ff830726efd38869f-refs/branch-heads/3538@{#1002}
OS Windows

Used flags: ./brave.exe --ui-mode=dark and ./brave.exe --ui-mode=light

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design A design change, especially one which needs input from the design team feature/user-interface All UI related QA Pass-Linux QA Pass-macOS QA Pass-Win64 QA/Yes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants