Issue metadata
Sign in to add a comment
|
Regression: The colour of the top border of the Omnibox Dropdown doesn't match with the colour of the bottom border of the Toolbar |
||||||||||||||||||||||
Issue descriptionChrome Version: Canary Version 61.0.3138.0 OS: macOS 10.12.5 What steps will reproduce the problem? (1) Hide the Bookmarks Bar and take a look at the bottom border colour of the Toolbar. (2) Type something into the Omnibox, so that the Dropdown appears. (3) Take a look at the top border of the Omnibox Dropdown colour. What is the expected result? What happens instead? Both colours should be the same. Not sure, if this is intentional, but this works fine in Chrome Stable 59. Two screencasts Canary vs. Chrome are attached. Please let me know, if you have any further question. Thanks. Mehmet
,
Jun 22 2017
tapted@ - is this related to your recent bookmarks bar border color fix or a different issue with estade@'s original change?
,
Jun 23 2017
it's a different issue.
Cocoa's theming seems to ignore ThemeProperties::COLOR_TOOLBAR_BOTTOM_SEPARATOR and ThemeProperties::COLOR_LOCATION_BAR_BORDER -- we don't reference those in Cocoa or cross-platform code, only under chrome/browser/ui/views
The popup background color on Mac is hardcoded:
NSColor* OmniboxPopupViewMac::BackgroundColor(bool is_dark_theme) {
const CGFloat kMDDarkControlBackround = 40 / 255.;
return is_dark_theme
? [NSColor colorWithGenericGamma22White:kMDDarkControlBackround
alpha:1]
: [NSColor controlBackgroundColor];
}
But -[BackgroundGradientView strokeColor] seems to arbitrarily pick ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR and use it for lots of things.
On views, the omnibox popup seems to use NativeTheme::kColorId_ResultsTableNormalBackground for its background.
Fixing this in the Cocoa browser in the wrong place to start -- there's no attempt on other platforms to make the colors in this bug description the same. (it even shifts up a pixel on Windows :/).
The only way to fix this on Mac separately would be to hardcode colors in more places to match OmniboxPopupViewMac::BackgroundColor(..) so that the theme is ignored consistently. There's a scary thread in Issue 621004 about all this...
If these should always match, then someone needs to first decide whether we should allow the omnibox popup to be themable, stop using NativeTheme::kColorId_ResultsTableNormalBackground there, and either rename ThemeProperties::COLOR_TOOLBAR_BOTTOM_SEPARATOR to ThemeProperties::COLOR_TOOLBAR_BOTTOM_SEPARATOR_AND_OMNIBOX_POPUP_BACKGROUND or add a new theme property for the omnibox popup.
I don't think any of this is high priority. It's probably blocked on a resolution of Issue 621004 to decide whether we want the omnibox popup to match the theme, which is currently providing the toolbar separator but has no influence on the omnibox popup.
,
Jun 28 2017
,
Jul 4 2017
,
Jul 5 2017
Switching to P-3 per "I don't think any of this is high priority."
,
Jul 6
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 6
This issue will be obsolete with MdRefresh. Please feel free to close this report. Thanks.
,
Jul 9
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by meh...@chromium.org
, Jun 22 2017Labels: -Needs-Bisect ReleaseBlock-Stable M-61