diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-10 01:27:34 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-10 01:27:34 +0000 |
commit | 5889766753d3c505b544f0fdd52dc1b3b900e047 (patch) | |
tree | b0dc2fffc867e8856b86f689ceef8d8202501504 /views/controls/label.cc | |
parent | 542bce32427c7a6a888aeaa9deeb83e8b84beafe (diff) | |
download | chromium_src-5889766753d3c505b544f0fdd52dc1b3b900e047.zip chromium_src-5889766753d3c505b544f0fdd52dc1b3b900e047.tar.gz chromium_src-5889766753d3c505b544f0fdd52dc1b3b900e047.tar.bz2 |
Multi-Profiels: Support high contrast mode in profile menu
BUG=92250
TEST=
Review URL: http://codereview.chromium.org/8168007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104690 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/label.cc')
-rw-r--r-- | views/controls/label.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/views/controls/label.cc b/views/controls/label.cc index bf62176..2340ba6 100644 --- a/views/controls/label.cc +++ b/views/controls/label.cc @@ -89,6 +89,11 @@ SkColor Label::GetColor() const { return color_; } +void Label::MakeReadableOverBackgroundColor(const SkColor& background_color) { + SetColor(color_utils::GetReadableColor( + IsEnabled() ? kEnabledColor : kDisabledColor, background_color)); +} + void Label::SetHorizontalAlignment(Alignment alignment) { // If the View's UI layout is right-to-left and rtl_alignment_mode_ is // USE_UI_ALIGNMENT, we need to flip the alignment so that the alignment |