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. 4 5 #include "chrome/browser/ui/search/search_ui.h" 6 7 #include "chrome/browser/themes/theme_properties.h" 8 #include "chrome/browser/themes/theme_service.h" 9 #include "grit/theme_resources.h" 10 11 namespace chrome { 12 GetDetachedBookmarkBarBackgroundColor(ThemeService * theme_service)13SkColor GetDetachedBookmarkBarBackgroundColor(ThemeService* theme_service) { 14 if (!theme_service->UsingDefaultTheme()) 15 return theme_service->GetColor(ThemeProperties::COLOR_TOOLBAR); 16 return SkColorSetARGB(0xFF, 0xF1, 0xF1, 0xF1); 17 } 18 GetDetachedBookmarkBarSeparatorColor(ThemeService * theme_service)19SkColor GetDetachedBookmarkBarSeparatorColor(ThemeService* theme_service) { 20 if (theme_service->UsingDefaultTheme()) { 21 return ThemeProperties::GetDefaultColor( 22 ThemeProperties::COLOR_TOOLBAR_SEPARATOR); 23 } 24 25 // Use 50% of bookmark text color as separator color. 26 return SkColorSetA( 27 theme_service->GetColor(ThemeProperties::COLOR_BOOKMARK_TEXT), 128); 28 } 29 30 } // namespace chrome 31