mac ui: Make Note dialogue look good on Yosemite

This commit is contained in:
Hylke Bons 2014-11-06 18:46:07 +00:00
parent 19a10f3d52
commit da6bd03491

View file

@ -97,8 +97,8 @@ namespace SparkleShare {
Bordered = false, Bordered = false,
Editable = false, Editable = false,
Frame = new RectangleF ( Frame = new RectangleF (
new PointF (85, ContentView.Frame.Height - 42), new PointF (85, ContentView.Frame.Height - 41),
new SizeF (320, 20)), new SizeF (320, 22)),
StringValue = Program.Controller.CurrentUser.Name, StringValue = Program.Controller.CurrentUser.Name,
Font = SparkleUI.BoldFont Font = SparkleUI.BoldFont
}; };
@ -113,7 +113,6 @@ namespace SparkleShare {
new PointF (85, ContentView.Frame.Height - 60), new PointF (85, ContentView.Frame.Height - 60),
new SizeF (320, 20)), new SizeF (320, 20)),
StringValue = Program.Controller.CurrentUser.Email, StringValue = Program.Controller.CurrentUser.Email,
Font = SparkleUI.Font
}; };
@ -138,14 +137,12 @@ namespace SparkleShare {
Title = "Cancel", Title = "Cancel",
BezelStyle = NSBezelStyle.Rounded, BezelStyle = NSBezelStyle.Rounded,
Frame = new RectangleF (Frame.Width - 15 - 105 * 2, 12, 105, 32), Frame = new RectangleF (Frame.Width - 15 - 105 * 2, 12, 105, 32),
Font = SparkleUI.Font
}; };
this.sync_button = new NSButton () { this.sync_button = new NSButton () {
Title = "Sync", Title = "Sync",
BezelStyle = NSBezelStyle.Rounded, BezelStyle = NSBezelStyle.Rounded,
Frame = new RectangleF (Frame.Width - 15 - 105, 12, 105, 32), Frame = new RectangleF (Frame.Width - 15 - 105, 12, 105, 32),
Font = SparkleUI.Font
}; };
this.cancel_button.Activated += delegate { Controller.CancelClicked (); }; this.cancel_button.Activated += delegate { Controller.CancelClicked (); };