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