| OLD | NEW |
| 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/views/bookmark_bar_instructions_view.h" | 5 #include "chrome/browser/views/bookmark_bar_instructions_view.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "chrome/browser/browser_theme_provider.h" | |
| 9 #include "chrome/browser/defaults.h" | 8 #include "chrome/browser/defaults.h" |
| 9 #include "chrome/browser/themes/browser_theme_provider.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 #include "views/controls/label.h" | 11 #include "views/controls/label.h" |
| 12 | 12 |
| 13 using views::View; | 13 using views::View; |
| 14 | 14 |
| 15 // Horizontal padding, in pixels, between the link and label. | 15 // Horizontal padding, in pixels, between the link and label. |
| 16 static const int kViewPadding = 6; | 16 static const int kViewPadding = 6; |
| 17 | 17 |
| 18 BookmarkBarInstructionsView::BookmarkBarInstructionsView(Delegate* delegate) | 18 BookmarkBarInstructionsView::BookmarkBarInstructionsView(Delegate* delegate) |
| 19 : delegate_(delegate), | 19 : delegate_(delegate), |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 const ThemeProvider* theme_provider = GetThemeProvider(); | 105 const ThemeProvider* theme_provider = GetThemeProvider(); |
| 106 if (!theme_provider) | 106 if (!theme_provider) |
| 107 return; | 107 return; |
| 108 updated_colors_ = true; | 108 updated_colors_ = true; |
| 109 SkColor text_color = | 109 SkColor text_color = |
| 110 theme_provider->GetColor(BrowserThemeProvider::COLOR_BOOKMARK_TEXT); | 110 theme_provider->GetColor(BrowserThemeProvider::COLOR_BOOKMARK_TEXT); |
| 111 instructions_->SetColor(text_color); | 111 instructions_->SetColor(text_color); |
| 112 if (import_link_) | 112 if (import_link_) |
| 113 import_link_->SetColor(text_color); | 113 import_link_->SetColor(text_color); |
| 114 } | 114 } |
| OLD | NEW |