diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 16:49:26 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 16:49:26 +0000 |
commit | 28065f66296d0d012aa5b02c147f4f77ef8a771e (patch) | |
tree | 9fc2567cd9a4edaf09a322e2465b8540787c118c /views/controls/link.h | |
parent | 120e1f1b2728ae5d1d4fed21bddb3533b921fdba (diff) | |
download | chromium_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/controls/link.h')
-rw-r--r-- | views/controls/link.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/controls/link.h b/views/controls/link.h index 30b2bdb7..bf5039b 100644 --- a/views/controls/link.h +++ b/views/controls/link.h @@ -61,10 +61,14 @@ class Link : public Label { void SetDisabledColor(const SkColor& color); void SetNormalColor(const SkColor& color); + // If you'll be displaying the link over some non-system background color, + // call this with the relevant color and the link will auto-set its colors to + // be readable. + void MakeReadableOverBackgroundColor(const SkColor& color); + static const char kViewClassName[]; private: - // A highlighted link is clicked. void SetHighlighted(bool f); |