Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Issue 205153003: linux_aura: Don't inject black in WrenchMenu::GetForegroundColor(). (Closed)

Created:
6 years, 9 months ago by Elliot Glaysher
Modified:
6 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

linux_aura: Don't inject black in WrenchMenu::GetForegroundColor(). Through a chain of calls, WrenchMenu::RecentTabsMenuModelDelegate hard coded the color black into menus, even when we were using light on dark system themes. This was done to bold specific menu labels. Separate out a specific bold disabled menu item color, thread this through the NativeTheme interface and add an accessor on WrenchMenu to decide whether to use it. Adds TODOs in the MenuDelegate interface to remove the Get{Foreground,Background}Color methods. These interfaces can't be used safely on the desktop. They can't be removed yet, though, because of a few remaining calls in ash/ that I don't understand. BUG=351307 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258485

Patch Set 1 #

Patch Set 2 : Style nit #

Total comments: 1

Patch Set 3 : sky rename request #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -20 lines) Patch
M chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_menu.h View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_menu.cc View 1 2 2 chunks +9 lines, -14 lines 0 comments Download
M ui/native_theme/common_theme.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/native_theme/fallback_theme.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/native_theme/native_theme_win.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_delegate.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_delegate.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_item_view.cc View 1 2 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Elliot Glaysher
6 years, 9 months ago (2014-03-19 22:07:19 UTC) #1
sky
https://codereview.chromium.org/205153003/diff/20001/ui/views/controls/menu/menu_delegate.h File ui/views/controls/menu/menu_delegate.h (right): https://codereview.chromium.org/205153003/diff/20001/ui/views/controls/menu/menu_delegate.h#newcode70 ui/views/controls/menu/menu_delegate.h:70: virtual bool GetBoldedDisabled(int command_id) const; Bold implies a font. ...
6 years, 9 months ago (2014-03-20 02:07:48 UTC) #2
Elliot Glaysher
Done. PTAL.
6 years, 9 months ago (2014-03-20 19:52:25 UTC) #3
sky
LGTM
6 years, 9 months ago (2014-03-20 21:06:46 UTC) #4
Elliot Glaysher
The CQ bit was checked by erg@chromium.org
6 years, 9 months ago (2014-03-20 21:14:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/205153003/40001
6 years, 9 months ago (2014-03-20 21:15:05 UTC) #6
commit-bot: I haz the power
6 years, 9 months ago (2014-03-21 01:08:31 UTC) #7
Message was sent while issue was closed.
Change committed as 258485

Powered by Google App Engine
This is Rietveld 408576698