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

Hover effect on Bookmarks bar is barely visible #35832

Closed
Skyyie opened this issue Feb 6, 2024 · 3 comments · Fixed by brave/brave-core#22568
Closed

Hover effect on Bookmarks bar is barely visible #35832

Skyyie opened this issue Feb 6, 2024 · 3 comments · Fixed by brave/brave-core#22568
Assignees
Labels

Comments

@Skyyie
Copy link

Skyyie commented Feb 6, 2024

After the new update, if we hover the cursor over bookmarks, there is barely any hover effect. I mean, it is barely visible. It is a bit visible in light themes but it is barely there with dark mode.

You can see an example here when I have my cursor over a bookmark folder (i.e., Dashboards):

img

I am on stable channel and it is the same since v1.62.153 (I am currently in v1.62.156).

Thread on Brave Community: https://community.brave.com/t/hover-effect-on-bookmarks-bar-is-barely-visible-on-latest-update/528225

@rebron rebron added priority/P3 The next thing for us to work on. It'll ride the trains. feature/themes QA/Yes release-notes/include labels Feb 6, 2024
@rebron rebron added this to P3 backlog in Front End Feb 13, 2024
@simonhong simonhong moved this from P3 backlog to In progress in Front End Mar 13, 2024
@simonhong
Copy link
Member

simonhong commented Mar 13, 2024

checking.
It's hover color should be same as toolbar button's as both have same background color.

simonhong added a commit to brave/brave-core that referenced this issue Mar 13, 2024
fix brave/brave-browser#35832

Changed to use callback for toolbar inkdrop.
Bookmark bar's button called ConfigureInkDropForToolbar() before
color provider is available. That makes bookmark button use light
mode color effect for dark theme.
@sangwoo108
Copy link

sangwoo108 commented Mar 13, 2024

Yeah, looks like the inkdrop layer is painted over the bookmark button's label. I guess the difference between chromium and ours would be the base color, which is white in Chromium, and black in ours?

Easy solution would be make bookmark buttons' label have transparent layer so that the layer can be painted atop the ink drop layer

BookmarkMenuButtonBase::BookmarkMenuButtonBase(PressedCallback callback,
                                               const std::u16string& title)
    : MenuButton(std::move(callback), title) {
...
  label()->SetPaintToLayer();
  label()->SetSubpixelRenderingEnabled(false);
  label()->layer()->SetFillsBoundsOpaquely(false);
image

simonhong added a commit to brave/brave-core that referenced this issue Mar 14, 2024
fix brave/brave-browser#35832

Changed to use callback for toolbar inkdrop.
Bookmark bar's button called ConfigureInkDropForToolbar() before
color provider is available. That makes bookmark button use light
mode color effect for dark theme.

Also, bookmark button's label should have its own layer.
Otherwise, the inkdrop will be rendered over the label.
simonhong added a commit to brave/brave-core that referenced this issue Mar 14, 2024
fix brave/brave-browser#35832

Changed to use callback for toolbar inkdrop.
Bookmark bar's button called ConfigureInkDropForToolbar() before
color provider is available. That makes bookmark button use light
mode color effect for dark theme.

Also, bookmark button's label should have its own layer.
Otherwise, the inkdrop will be rendered over the label.
@brave-builds brave-builds added this to the 1.66.x - Nightly milestone Mar 15, 2024
@rebron rebron moved this from In progress to Completed in Front End Mar 19, 2024
@stephendonner
Copy link

stephendonner commented Apr 3, 2024

Verification PASSED using

Brave | 1.66.56 Chromium: 123.0.6312.86 (Official Build) nightly (64-bit)
-- | --
Revision | 029ff6b82a6cfb16bde7c6d7ab560321a023cb8b
OS | Windows 10 Version 22H2 (Build 19045.4239)

Steps:

  1. installed 1.66.56
  2. launched Brave
  3. loaded a few websites, and saved their bookmarks on the bookmarks toolbar
  4. in Dark mode, took stock of default, on-hover (folder) and on-hover (bookmark) behavior
  5. switched to Light mode via brave://settings/appearance
  6. took stock of default, on-hover (folder) and on-hover (bookmark) behavior

Confirmed slightly darker, visible hover effects on both folders and bookmarks

Dark mode

default on-hover, folder on-hover, bookmark
image image image

Light mode

default on-hover, folder on-hover, bookmark
image image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants