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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm

Issue 2946183002: Mac: Don't replace the alpha on the detached toolbar separator color. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.h"
6 6
7 #include "chrome/browser/search/search.h" 7 #include "chrome/browser/search/search.h"
8 #include "chrome/browser/themes/theme_properties.h" 8 #include "chrome/browser/themes/theme_properties.h"
9 #include "chrome/browser/themes/theme_service.h" 9 #include "chrome/browser/themes/theme_service.h"
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 80
81 // Bottom stroke. 81 // Bottom stroke.
82 NSRect strokeRect = [self bounds]; 82 NSRect strokeRect = [self bounds];
83 strokeRect.size.height = [self cr_lineWidth]; 83 strokeRect.size.height = [self cr_lineWidth];
84 if (NSIntersectsRect(strokeRect, dirtyRect)) { 84 if (NSIntersectsRect(strokeRect, dirtyRect)) {
85 NSColor* strokeColor = 85 NSColor* strokeColor =
86 tp.GetNSColor(ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR); 86 tp.GetNSColor(ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR);
87 strokeColor = [[self strokeColor] blendedColorWithFraction:morph 87 strokeColor = [[self strokeColor] blendedColorWithFraction:morph
88 ofColor:strokeColor]; 88 ofColor:strokeColor];
89 strokeColor = [strokeColor colorWithAlphaComponent:0.5];
90 [strokeColor set]; 89 [strokeColor set];
91 NSRectFillUsingOperation(NSIntersectionRect(strokeRect, dirtyRect), 90 NSRectFillUsingOperation(NSIntersectionRect(strokeRect, dirtyRect),
92 NSCompositeSourceOver); 91 NSCompositeSourceOver);
93 } 92 }
94 } 93 }
95 94
96 @end // @implementation BookmarkBarToolbarView 95 @end // @implementation BookmarkBarToolbarView
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698