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

Issue 440633002: [Mac] Use CommonTheme for the new avatar menu button hover background (Closed)

Created:
6 years, 4 months ago by tapted
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, Robert Sesek
Project:
chromium
Visibility:
Public.

Description

[Mac] Use CommonTheme for the new avatar menu button hover background As of r286651, NativeThemeMac now provides user-configurable system colours for better OS integration. However, these are not needed for dialogs that aren't trying to look native. This change gets the button hover background used for the new avatar menu from CommonTheme instead, to get a cross-platform look. BUG=399820 TEST=On Mac, run Chrome with --new-avatar-menu and open the avatar drop-down; hovering over the "Not xxx?" item should switch to a gray background. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287725

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 2 chunks +8 lines, -3 lines 9 comments Download

Messages

Total messages: 10 (0 generated)
tapted
Hi Monica, see what you think. This feels like the right fix, but feel free ...
6 years, 4 months ago (2014-08-04 03:11:48 UTC) #1
noms (inactive)
Should we remove kColorId_ButtonHoverBackgroundColor from the mac native theme? I'm not sure what would stop ...
6 years, 4 months ago (2014-08-04 18:25:17 UTC) #2
tapted
+rsesek for OWNERS and ++wisdom On 2014/08/04 18:25:17, Monica Dinculescu wrote: > Should we remove ...
6 years, 4 months ago (2014-08-05 00:09:07 UTC) #3
tapted
+groby for OWNERS - please take a look, and see if you agree with earlier ...
6 years, 4 months ago (2014-08-05 23:34:18 UTC) #4
groby-ooo-7-16
LGTM https://codereview.chromium.org/440633002/diff/1/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/440633002/diff/1/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode188 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:188: ui::NativeTheme::kColorId_DialogBackground)); On 2014/08/04 03:11:47, tapted wrote: > note, ...
6 years, 4 months ago (2014-08-06 00:05:25 UTC) #5
tapted
https://codereview.chromium.org/440633002/diff/1/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/440633002/diff/1/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode188 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:188: ui::NativeTheme::kColorId_DialogBackground)); On 2014/08/06 00:05:25, groby wrote: > On 2014/08/04 ...
6 years, 4 months ago (2014-08-06 01:49:09 UTC) #6
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 4 months ago (2014-08-06 03:33:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/440633002/1
6 years, 4 months ago (2014-08-06 03:36:33 UTC) #8
commit-bot: I haz the power
Change committed as 287725
6 years, 4 months ago (2014-08-06 07:19:02 UTC) #9
groby-ooo-7-16
6 years, 4 months ago (2014-08-07 00:37:09 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/440633002/diff/1/chrome/browser/ui/cocoa/prof...
File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right):

https://codereview.chromium.org/440633002/diff/1/chrome/browser/ui/cocoa/prof...
chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:188:
ui::NativeTheme::kColorId_DialogBackground));
On 2014/08/06 01:49:08, tapted wrote:
> On 2014/08/06 00:05:25, groby wrote:
> > On 2014/08/04 03:11:47, tapted wrote:
> > > note, I might be looking to change this later too.. But I'll change them
all
> > at
> > > once. Something like kColorId_MenuBackgroundColor might be suitable here.
> > 
> > It'd be nice if the theme called out a color id for dialog backgrounds. (Not
> > that it matters to this CL)
> 
> Maybe a separate colors for NSAlert-style dialog backgrounds, and another for
> bubble-like backgrounds is in order.
> 
> I'll probably end up getting some input from a UX person. The constant that
> NativeThemeMac offers up is quite white. I think, e.g., the bookmark bubble
> looks a bit out of place on Mac. On Linux, it's nice shade of gray that
matches
> the toolbar background.
> 
> Checking iTunes.. it has some bubbles that you get from its _two_ hotdog
buttons
> (one in the status display that only appears on hover). One is quite gray, and
> one is quite white.  So, I guess that's not much help :/. 
> 
> One of my many yaks to shave...

I <3 yaks! ;)

In that vein - maybe there should be a CommonBubbleTheme, and a
CommonDialogTheme? It'd be nice to have those constants centralized.

Powered by Google App Engine
This is Rietveld 408576698