diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/AspNet/Projects/GtkAspNetProjectTemplateWizardPageWidget.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/src/addins/AspNet/Projects/GtkAspNetProjectTemplateWizardPageWidget.cs b/main/src/addins/AspNet/Projects/GtkAspNetProjectTemplateWizardPageWidget.cs index 2d59d4b9a3..010b681d33 100644 --- a/main/src/addins/AspNet/Projects/GtkAspNetProjectTemplateWizardPageWidget.cs +++ b/main/src/addins/AspNet/Projects/GtkAspNetProjectTemplateWizardPageWidget.cs @@ -29,6 +29,7 @@ using System; using Gdk;
using Gtk;
using MonoDevelop.Components;
+using MonoDevelop.Core;
namespace MonoDevelop.AspNet.Projects
{
@@ -45,6 +46,20 @@ namespace MonoDevelop.AspNet.Projects {
this.Build ();
+ if (Platform.IsMac) {
+ int labelPaddingHeight = 5;
+ if (IsYosemiteOrHigher ())
+ labelPaddingHeight--;
+ includeLabelPadding.HeightRequest = labelPaddingHeight;
+ testingLabelPadding.HeightRequest = labelPaddingHeight;
+
+ int leftPaddingWidth = 28;
+ mvcDescriptionLeftHandPadding.WidthRequest = leftPaddingWidth;
+ webFormsDescriptionLeftHandPadding.WidthRequest = leftPaddingWidth;
+ webApiDescriptionLeftHandPadding.WidthRequest = leftPaddingWidth;
+ includeUnitTestProjectDescriptionLeftHandPadding.WidthRequest = leftPaddingWidth;
+ }
+
backgroundImage = Xwt.Drawing.Image.FromResource ("aspnet-wizard-page.png");
backgroundImageView = new ImageView (backgroundImage);
backgroundImageView.Xalign = 1;
@@ -125,6 +140,11 @@ namespace MonoDevelop.AspNet.Projects configurationTable.Remove (widget);
widget.Destroy ();
}
+
+ bool IsYosemiteOrHigher ()
+ {
+ return Platform.OSVersion >= MacSystemInformation.Yosemite;
+ }
}
}
|