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

Unified Diff: ui/views/background.cc

Issue 2616273002: Native Themes: Add table header colors (Closed)
Patch Set: Add gradients back Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/background.h ('k') | ui/views/controls/table/table_header.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/background.cc
diff --git a/ui/views/background.cc b/ui/views/background.cc
index f8bf1b69578fb8c35f686b21bbc02a6f096825de..190a5a62c346e714f9b7c4dad8a8d79321132a0d 100644
--- a/ui/views/background.cc
+++ b/ui/views/background.cc
@@ -79,17 +79,6 @@ Background* Background::CreateStandardPanelBackground() {
}
// static
-Background* Background::CreateVerticalGradientBackground(SkColor color1,
- SkColor color2) {
- Background* background =
- CreateBackgroundPainter(Painter::CreateVerticalGradient(color1, color2));
- background->SetNativeControlColor(
- color_utils::AlphaBlend(color1, color2, 128));
-
- return background;
-}
-
-// static
Background* Background::CreateBackgroundPainter(
std::unique_ptr<Painter> painter) {
return new BackgroundPainter(std::move(painter));
« no previous file with comments | « ui/views/background.h ('k') | ui/views/controls/table/table_header.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698