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

Side by Side Diff: chrome/browser/ui/infobar.cc

Issue 7130001: Make infobar background gray (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/infobar.h"
6
7 namespace infobar {
8
9 SkColor GetTopColor(InfoBarDelegate::Type infobar_type) {
10 // Yellow
11 static const SkColor kWarningBackgroundColorTop =
12 SkColorSetRGB(255, 242, 183);
13 // Gray
14 static const SkColor kPageActionBackgroundColorTop =
15 SkColorSetRGB(237, 237, 237);
16
17 return (infobar_type == InfoBarDelegate::WARNING_TYPE) ?
18 kWarningBackgroundColorTop : kPageActionBackgroundColorTop;
19 }
20
21 SkColor GetBottomColor(InfoBarDelegate::Type infobar_type) {
22 // Yellow
23 static const SkColor kWarningBackgroundColorBottom =
24 SkColorSetRGB(250, 230, 145);
25 // Gray
26 static const SkColor kPageActionBackgroundColorBottom =
27 SkColorSetRGB(217, 217, 217);
28
29 return (infobar_type == InfoBarDelegate::WARNING_TYPE) ?
30 kWarningBackgroundColorBottom : kPageActionBackgroundColorBottom;
31 }
32
33 } // namespace infobar
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698