Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / search / search_ui.cc
blobd69483d20369a126ed0647c907e5270463b62107
1 // Copyright (c) 2012 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.
5 #include "chrome/browser/ui/search/search_ui.h"
7 #include "chrome/browser/themes/theme_properties.h"
8 #include "chrome/browser/themes/theme_service.h"
10 namespace chrome {
12 SkColor GetDetachedBookmarkBarBackgroundColor(ThemeService* theme_service) {
13 if (!theme_service->UsingDefaultTheme())
14 return theme_service->GetColor(ThemeProperties::COLOR_TOOLBAR);
15 return SkColorSetARGB(0xFF, 0xF1, 0xF1, 0xF1);
18 SkColor GetDetachedBookmarkBarSeparatorColor(ThemeService* theme_service) {
19 if (theme_service->UsingDefaultTheme()) {
20 return ThemeProperties::GetDefaultColor(
21 ThemeProperties::COLOR_TOOLBAR_SEPARATOR);
24 // Use 50% of bookmark text color as separator color.
25 return SkColorSetA(
26 theme_service->GetColor(ThemeProperties::COLOR_BOOKMARK_TEXT), 128);
29 } // namespace chrome