diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-20 15:40:11 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-20 15:40:11 +0000 |
commit | 94fccbf9860b2a75fcfc49302c8575957a6dfe47 (patch) | |
tree | 556be316f1cfa2919f68f50569ad6fa69152d14b /ash | |
parent | e21bd3e042a428cb408b4f49a7889a4e666a8907 (diff) | |
download | chromium_src-94fccbf9860b2a75fcfc49302c8575957a6dfe47.zip chromium_src-94fccbf9860b2a75fcfc49302c8575957a6dfe47.tar.gz chromium_src-94fccbf9860b2a75fcfc49302c8575957a6dfe47.tar.bz2 |
ash: Set background color of tray::DateView label properly and use gfx::Canvas::NO_SUBPIXEL_RENDERING flag when rendering title bar text to avoid artifacts when window frame is translucent.
BUG=118801
TEST=Visual, text in window title bars and the system tray should be crisp
Review URL: http://codereview.chromium.org/9720028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127693 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/system/power/tray_power_date.cc | 1 | ||||
-rw-r--r-- | ash/wm/frame_painter.cc | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ash/system/power/tray_power_date.cc b/ash/system/power/tray_power_date.cc index e364c46..1e97865 100644 --- a/ash/system/power/tray_power_date.cc +++ b/ash/system/power/tray_power_date.cc @@ -88,6 +88,7 @@ class DateView : public views::View { SetLayoutManager(new views::FillLayout()); label_ = new views::Label; label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); + label_->SetBackgroundColor(SkColorSetARGB(0, 255, 255, 255)); UpdateText(); AddChildView(label_); } diff --git a/ash/wm/frame_painter.cc b/ash/wm/frame_painter.cc index d9e72ab..a13b176 100644 --- a/ash/wm/frame_painter.cc +++ b/ash/wm/frame_painter.cc @@ -311,7 +311,8 @@ void FramePainter::PaintTitleBar(views::NonClientFrameView* view, view->GetMirroredXForRect(title_bounds), title_bounds.y(), title_bounds.width(), - title_bounds.height()); + title_bounds.height(), + gfx::Canvas::NO_SUBPIXEL_RENDERING); } } |