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

Unified Diff: ui/views/examples/label_example.cc

Issue 308083011: Add support for painting halos on Views Labels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Draw halos over shadows; refine function order and example. Created 6 years, 7 months 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 | « ui/views/controls/label.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/label_example.cc
diff --git a/ui/views/examples/label_example.cc b/ui/views/examples/label_example.cc
index 239b4db95f27ec9d4d0d6cd237a8d8ddf29bff86..83dd9227ceb8d50848995e7c69909c9c1ca6110d 100644
--- a/ui/views/examples/label_example.cc
+++ b/ui/views/examples/label_example.cc
@@ -68,10 +68,11 @@ void LabelExample::CreateExampleView(View* container) {
label->SetEnabledColor(SK_ColorBLUE);
container->AddChildView(label);
- label = new Label(ASCIIToUTF16("A Courier-18 label with a shadow."));
+ label = new Label(ASCIIToUTF16("A Courier-18 label with a halo and shadow."));
label->SetFontList(gfx::FontList("Courier, 18px"));
label->SetShadowColors(SK_ColorGRAY, SK_ColorLTGRAY);
- label->SetShadowOffset(1, 1);
+ label->SetShadowOffset(2, 2);
+ label->set_halo_color(SK_ColorGREEN);
container->AddChildView(label);
label = new PreferredSizeLabel();
« no previous file with comments | « ui/views/controls/label.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698