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

Side by Side Diff: chrome/browser/browser_theme_provider.cc

Issue 3152014: Merge 55906 - [Mac] Fix aesthetic issues with themes given the new TopChrome ... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/browser/browser_theme_provider.h ('k') | chrome/browser/cocoa/gradient_button_cell.mm » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/browser_theme_provider.h" 5 #include "chrome/browser/browser_theme_provider.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser_theme_pack.h" 9 #include "chrome/browser/browser_theme_pack.h"
10 #include "chrome/browser/extensions/extensions_service.h" 10 #include "chrome/browser/extensions/extensions_service.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const SkColor kDefaultColorNTPHeader = SkColorSetRGB(75, 140, 220); 77 const SkColor kDefaultColorNTPHeader = SkColorSetRGB(75, 140, 220);
78 const SkColor kDefaultColorNTPSection = SkColorSetRGB(229, 239, 254); 78 const SkColor kDefaultColorNTPSection = SkColorSetRGB(229, 239, 254);
79 const SkColor kDefaultColorNTPSectionText = SK_ColorBLACK; 79 const SkColor kDefaultColorNTPSectionText = SK_ColorBLACK;
80 const SkColor kDefaultColorNTPSectionLink = SkColorSetRGB(6, 55, 116); 80 const SkColor kDefaultColorNTPSectionLink = SkColorSetRGB(6, 55, 116);
81 const SkColor kDefaultColorControlBackground = SkColorSetARGB(0, 0, 0, 0); 81 const SkColor kDefaultColorControlBackground = SkColorSetARGB(0, 0, 0, 0);
82 const SkColor kDefaultColorButtonBackground = SkColorSetARGB(0, 0, 0, 0); 82 const SkColor kDefaultColorButtonBackground = SkColorSetARGB(0, 0, 0, 0);
83 #if defined(OS_MACOSX) 83 #if defined(OS_MACOSX)
84 const SkColor kDefaultColorToolbarButtonStroke = SkColorSetARGB(75, 81, 81, 81); 84 const SkColor kDefaultColorToolbarButtonStroke = SkColorSetARGB(75, 81, 81, 81);
85 const SkColor kDefaultColorToolbarButtonStrokeInactive = 85 const SkColor kDefaultColorToolbarButtonStrokeInactive =
86 SkColorSetARGB(75, 99, 99, 99); 86 SkColorSetARGB(75, 99, 99, 99);
87 const SkColor kDefaultColorToolbarBezel = SkColorSetRGB(247, 247, 247);
87 const SkColor kDefaultColorToolbarStroke = SkColorSetRGB(103, 103, 103); 88 const SkColor kDefaultColorToolbarStroke = SkColorSetRGB(103, 103, 103);
88 const SkColor kDefaultColorToolbarStrokeInactive = SkColorSetRGB(123, 123, 123); 89 const SkColor kDefaultColorToolbarStrokeInactive = SkColorSetRGB(123, 123, 123);
89 #endif 90 #endif
90 91
91 // Default tints. 92 // Default tints.
92 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 }; 93 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 };
93 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 }; 94 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 };
94 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f }; 95 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f };
95 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f }; 96 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f };
96 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f }; 97 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f };
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 return TintForUnderline(kDefaultColorNTPSectionLink); 445 return TintForUnderline(kDefaultColorNTPSectionLink);
445 case COLOR_CONTROL_BACKGROUND: 446 case COLOR_CONTROL_BACKGROUND:
446 return kDefaultColorControlBackground; 447 return kDefaultColorControlBackground;
447 case COLOR_BUTTON_BACKGROUND: 448 case COLOR_BUTTON_BACKGROUND:
448 return kDefaultColorButtonBackground; 449 return kDefaultColorButtonBackground;
449 #if defined(OS_MACOSX) 450 #if defined(OS_MACOSX)
450 case COLOR_TOOLBAR_BUTTON_STROKE: 451 case COLOR_TOOLBAR_BUTTON_STROKE:
451 return kDefaultColorToolbarButtonStroke; 452 return kDefaultColorToolbarButtonStroke;
452 case COLOR_TOOLBAR_BUTTON_STROKE_INACTIVE: 453 case COLOR_TOOLBAR_BUTTON_STROKE_INACTIVE:
453 return kDefaultColorToolbarButtonStrokeInactive; 454 return kDefaultColorToolbarButtonStrokeInactive;
455 case COLOR_TOOLBAR_BEZEL:
456 return kDefaultColorToolbarBezel;
454 case COLOR_TOOLBAR_STROKE: 457 case COLOR_TOOLBAR_STROKE:
455 return kDefaultColorToolbarStroke; 458 return kDefaultColorToolbarStroke;
456 case COLOR_TOOLBAR_STROKE_INACTIVE: 459 case COLOR_TOOLBAR_STROKE_INACTIVE:
457 return kDefaultColorToolbarStrokeInactive; 460 return kDefaultColorToolbarStrokeInactive;
458 #endif 461 #endif
459 default: 462 default:
460 // Return a debugging red color. 463 // Return a debugging red color.
461 return 0xffff0000; 464 return 0xffff0000;
462 } 465 }
463 } 466 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 void BrowserThemeProvider::OnInfobarDisplayed() { 599 void BrowserThemeProvider::OnInfobarDisplayed() {
597 number_of_infobars_++; 600 number_of_infobars_++;
598 } 601 }
599 602
600 void BrowserThemeProvider::OnInfobarDestroyed() { 603 void BrowserThemeProvider::OnInfobarDestroyed() {
601 number_of_infobars_--; 604 number_of_infobars_--;
602 605
603 if (number_of_infobars_ == 0) 606 if (number_of_infobars_ == 0)
604 RemoveUnusedThemes(); 607 RemoveUnusedThemes();
605 } 608 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_theme_provider.h ('k') | chrome/browser/cocoa/gradient_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698