From 467586a0a83aa6e9d091a5e0277af24b224ca71c Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Tue, 4 Sep 2012 00:37:17 +0100 Subject: [PATCH] setup: Add help label explaining why email is requested --- SparkleShare/Mac/SparkleSetup.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/SparkleShare/Mac/SparkleSetup.cs b/SparkleShare/Mac/SparkleSetup.cs index 78c1e1b1..4332219a 100755 --- a/SparkleShare/Mac/SparkleSetup.cs +++ b/SparkleShare/Mac/SparkleSetup.cs @@ -48,6 +48,7 @@ namespace SparkleShare { private NSProgressIndicator ProgressIndicator; private NSTextField EmailLabel; private NSTextField EmailTextField; + private NSTextField EmailHelpLabel; private NSTextField FullNameTextField; private NSTextField FullNameLabel; private NSTextField AddressTextField; @@ -134,6 +135,19 @@ namespace SparkleShare { Delegate = new SparkleTextFieldDelegate () }; + EmailHelpLabel = new NSTextField () { + BackgroundColor = NSColor.WindowBackground, + Bordered = false, + TextColor = NSColor.DisabledControlText, + Editable = false, + Frame = new RectangleF (330, Frame.Height - 290, 204, 17), + Font = NSFontManager.SharedFontManager.FontWithFamily ("Lucida Grande", + NSFontTraitMask.Condensed, 0, 11), + StringValue = "(used to find your Gravatar)" + }; + + + CancelButton = new NSButton () { Title = "Cancel" }; @@ -174,6 +188,7 @@ namespace SparkleShare { ContentView.AddSubview (FullNameTextField); ContentView.AddSubview (EmailLabel); ContentView.AddSubview (EmailTextField); + ContentView.AddSubview (EmailHelpLabel); Buttons.Add (ContinueButton); Buttons.Add (CancelButton);