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

Unified Diff: chrome/browser/chromeos/status/status_area_button.cc

Issue 5522007: ChromeOS status text halo polish. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address davemoore's comment Created 10 years 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 | « no previous file | gfx/canvas_skia_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/status_area_button.cc
diff --git a/chrome/browser/chromeos/status/status_area_button.cc b/chrome/browser/chromeos/status/status_area_button.cc
index 14d197dbd1e68aecbc9c5d87a90170042738853a..a75808bf86d331953f62f14d6a5eea9ec1774563 100644
--- a/chrome/browser/chromeos/status/status_area_button.cc
+++ b/chrome/browser/chromeos/status/status_area_button.cc
@@ -12,6 +12,9 @@
namespace chromeos {
+// A 0.7 black to decorate status text. Same color is used for icon borders.
+static const SkColor kStatusTextHaloColor = SkColorSetARGB(0xB3, 0, 0, 0);
+
////////////////////////////////////////////////////////////////////////////////
// StatusAreaButton
@@ -23,8 +26,8 @@ StatusAreaButton::StatusAreaButton(views::ViewMenuDelegate* menu_delegate)
// Use an offset that is top aligned with toolbar.
set_menu_offset(0, 2);
- // Use a black halo for status text.
- SetTextHaloColor(SK_ColorBLACK);
+ // Use a halo for status text as the icons.
+ SetTextHaloColor(kStatusTextHaloColor);
}
void StatusAreaButton::Paint(gfx::Canvas* canvas, bool for_drag) {
« no previous file with comments | « no previous file | gfx/canvas_skia_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698