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

[Desktop] Address bar background color does not change in private mode when dark theme is enabled #9945

Closed
georapbox opened this issue May 26, 2020 · 8 comments · Fixed by brave/brave-core#5899

Comments

@georapbox
Copy link

Description

When dark theme is enabled, if I open a Private window, the address bar background color remains the same as in normal window. If light theme is enabled, the address bar background color changes to adjust to the purple theme of the Private window.

Steps to Reproduce

  1. Enable dark theme from Settings > Appearance > Brave colors
  2. Open a new Private window (File > New Private Window)

Actual result:

The address bar background color is the same with the one of the dark theme, not adjusting to the purple theme of the private window.
private_window_dark_theme

Expected result:

The address bar background color should change to adjust to the purple theme of the private window.
private_window_light_theme

Reproduces how often:

Always

Brave version (brave://version info)

Brave: 1.9.72 Chromium: 81.0.4044.138 (Official Build) (64-bit)
Revision: 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS: macOS Version 10.15.1

Version/Channel Information:

  • Can you reproduce this issue with the current release?
    Yes
  • Can you reproduce this issue with the beta channel?
    Yes
  • Can you reproduce this issue with the dev channel?
    Yes
  • Can you reproduce this issue with the nightly channel?
    Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
    Not related to Brave Shields
  • Does the issue resolve itself when disabling Brave Rewards?
    Not related to Brave Rewqrds
  • Is the issue reproducible on the latest version of Chrome?
    No

Miscellaneous Information:

@bsclifton
Copy link
Member

I'm not able to reproduce this on Windows - @georapbox do you have the mouse in the URL bar? If the URL bar is hovered, it will change to that color

@bsclifton bsclifton added design A design change, especially one which needs input from the design team feature/private-browsing feature/url-bar feature/user-interface All UI related and removed design A design change, especially one which needs input from the design team labels Jun 3, 2020
@simonhong
Copy link
Member

simonhong commented Jun 3, 2020

I think the issue is address bar background is not refreshed if address bar doesn't have focus while changing theme.

@karenkliu , we are using different address bar bg colors for light/dark theme like captured below.
Is this correct? or we should use same color regardless of dark/light theme?

@georapbox
Copy link
Author

Unfortunately I don't have a Windows machine available at the moment to test. The issue appears to be on MacOS though. The address bar background color does not adjust to the purple theme of the private window. Below I attach a screenshot comparing light and dark theme along with how the address bar reacts on mouse away, mouse over and focus states. Hope this proves helpful..

brave_address_bar

@bsclifton
Copy link
Member

@georapbox this is perfect, thanks! So without mouse above, it's black rather than purple. Can see problem clearly now

@bsclifton bsclifton added the needs-investigation A bug not 100% confirmed/fixed label Jun 3, 2020
@karenkliu
Copy link

@georapbox Thanks for the screenshot!

@simonhong In private/Tor mode we use the same colors in light and dark theme. As you can see from the above screenshot, in dark theme the address bar background should not be dark grey - it should be purple, the same as light theme.

@360fun
Copy link

360fun commented Jun 16, 2020

I've a similar problem: when the dark theme/mode is active I can barely see the dark blue text/urls in the address bar.
image

image

image

The color contrast is very very low (dark blue on almost black backgrounf), even for a "normal" person: for people with problems it probably looks all background with no urls.

@karenkliu
Copy link

☝️ Changing Chromium colored address bar links to Brave-styled in light/dark should probably be logged as a separate issue.

@simonhong simonhong self-assigned this Jun 18, 2020
@simonhong simonhong added this to the 1.12.x - Nightly milestone Jun 18, 2020
@rebron rebron changed the title Address bar background color dos not change in private mode when dark theme enabled. [Desktop] Address bar background color dos not change in private mode when dark theme enabled Jul 20, 2020
@rebron rebron added OS/Desktop release-notes/include and removed needs-investigation A bug not 100% confirmed/fixed labels Jul 20, 2020
@rebron rebron added the priority/P4 Planned work. We expect to get to it "soon". label Jul 20, 2020
@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Jul 31, 2020

Verification passed on


Brave | 1.12.105 Chromium: 84.0.4147.105 (Official Build) (64-bit)
-- | --
Revision | a6b12dfad6663f13a7e16e9a42a6a4975374096b-refs/branch-heads/4147@{#943}
OS | Windows 10 OS Version 1903 (Build 18362.959)

Reproduced issue in 1.11.x
Dark theme - PT address bar
image

PT window Light theme
image

PT window Dark theme
image

Custom theme - PT window light theme
image

Custom theme - PT window dark theme
image

Verification passed on

Brave 1.12.105 Chromium: 84.0.4147.105 (Official Build) (64-bit)
Revision a6b12dfad6663f13a7e16e9a42a6a4975374096b-refs/branch-heads/4147@{#943}
OS Ubuntu 18.04 LTS

Reproduced issue in 1.11.x
Dark theme - PT address bar
image

PT window Light theme
image

PT window Dark theme
image


Verified passed with

Brave | 1.12.108 Chromium: 84.0.4147.105 (Official Build) (64-bit)
-- | --
Revision | a6b12dfad6663f13a7e16e9a42a6a4975374096b-refs/branch-heads/4147@{#943}
OS | macOS Version 10.14.6 (Build 18G3020)
  • Reproduced the issue on 1.11.x:

1 11 x

Dark theme private window:
1 12 x dark

Light theme private window:
1 12 x light

@rebron rebron changed the title [Desktop] Address bar background color dos not change in private mode when dark theme enabled [Desktop] Address bar background color does not change in private mode when dark theme is enabled Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment