Skip to content

Commit

Permalink
[Mac] Fixed the incognito omnibox icon background color
Browse files Browse the repository at this point in the history
BUG=588377, 666980

Review-Url: https://codereview.chromium.org/2513083002
Cr-Commit-Position: refs/heads/master@{#433338}
(cherry picked from commit 40b3059)

Review URL: https://codereview.chromium.org/2515193003 .

Cr-Commit-Position: refs/branch-heads/2924@{#31}
Cr-Branched-From: 3a87aec-refs/heads/master@{#433059}
  • Loading branch information
spqchan committed Nov 21, 2016
1 parent 7ba25d3 commit 45687a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

// Color values for the hover and pressed background.
const SkColor kHoverBackgroundColor = 0x14000000;
const SkColor kHoverDarkBackgroundColor = 0x1E000000;
const SkColor kHoverDarkBackgroundColor = 0x1EFFFFFF;
const SkColor kPressedBackgroundColor = 0x1E000000;
const SkColor kPressedDarkBackgroundColor = 0x3D000000;
const SkColor kPressedDarkBackgroundColor = 0x3DFFFFFF;

// Amount of inset for the background frame.
const CGFloat kBackgroundFrameYInset = 2.0;
Expand Down Expand Up @@ -180,7 +180,7 @@ - (void)mouseExited:(NSEvent*)event {
in_dark_mode ? kHoverDarkBackgroundColor : kHoverBackgroundColor;
} else {
background_color =
in_dark_mode ? kPressedBackgroundColor : kPressedDarkBackgroundColor;
in_dark_mode ? kPressedDarkBackgroundColor : kPressedBackgroundColor;
}

[skia::SkColorToSRGBNSColor(background_color) setFill];
Expand Down

0 comments on commit 45687a0

Please sign in to comment.