summaryrefslogtreecommitdiffstats
path: root/views/background.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 16:49:26 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 16:49:26 +0000
commit28065f66296d0d012aa5b02c147f4f77ef8a771e (patch)
tree9fc2567cd9a4edaf09a322e2465b8540787c118c /views/background.h
parent120e1f1b2728ae5d1d4fed21bddb3533b921fdba (diff)
downloadchromium_src-28065f66296d0d012aa5b02c147f4f77ef8a771e.zip
chromium_src-28065f66296d0d012aa5b02c147f4f77ef8a771e.tar.gz
chromium_src-28065f66296d0d012aa5b02c147f4f77ef8a771e.tar.bz2
Use the system WINDOWTEXT color for labels, instead of black. Also use the system WINDOW color for InfoBubbles, not white. Several places are made to explicitly use black labels where that's correct or respecting system colors is a non-trivial fix (bugs filed for most).
Also, apparently I didn't get all my cleanup changes in the last patch, oops. BUG=92,21027 TEST=Set theme to high-contrast black on white, check that most pieces of chrome UI have readable text Review URL: http://codereview.chromium.org/237005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27196 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/background.h')
-rw-r--r--views/background.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/views/background.h b/views/background.h
index 1453749..a5215e4 100644
--- a/views/background.h
+++ b/views/background.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -73,6 +73,12 @@ class Background {
// controls. Unfortunately alpha=0 is not an option.
void SetNativeControlColor(SkColor color);
+ // Returns the "background color". This is equivalent to the color set in
+ // SetNativeControlColor(). For solid backgrounds, this is the color; for
+ // gradient backgrounds, it's the midpoint of the gradient; for painter
+ // backgrounds, this is not useful (returns a default color).
+ SkColor get_color() const { return color_; }
+
#if defined(OS_WIN)
// TODO(port): Make GetNativeControlBrush portable (currently uses HBRUSH).
@@ -81,10 +87,12 @@ class Background {
#endif // defined(OS_WIN)
private:
+ SkColor color_;
#if defined(OS_WIN)
// TODO(port): Create portable replacement for HBRUSH.
HBRUSH native_control_brush_;
#endif // defined(OS_WIN)
+
DISALLOW_COPY_AND_ASSIGN(Background);
};