From 113b7a942b13148efd071f4189c71bb3acc6210e Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 19 Jun 2011 13:46:19 +0100 Subject: [PATCH] event log: make popupbutton smaller --- SparkleShare/Mac/SparkleEventLog.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/SparkleShare/Mac/SparkleEventLog.cs b/SparkleShare/Mac/SparkleEventLog.cs index 3cc23774..c10c2a8e 100644 --- a/SparkleShare/Mac/SparkleEventLog.cs +++ b/SparkleShare/Mac/SparkleEventLog.cs @@ -70,14 +70,14 @@ namespace SparkleShare { private void CreateEvents () { - Separator = new NSBox (new RectangleF (0, 573, 480, 1)) { + Separator = new NSBox (new RectangleF (0, 579, 480, 1)) { BorderColor = NSColor.LightGray, BoxType = NSBoxType.NSBoxCustom }; ContentView.AddSubview (Separator); - WebView = new WebView (new RectangleF (0, 0, 480, 573 ), "", ""){ + WebView = new WebView (new RectangleF (0, 0, 480, 579), "", "") { PolicyDelegate = new SparkleWebPolicyDelegate () }; @@ -97,10 +97,14 @@ namespace SparkleShare { this.popup_button.RemoveFromSuperview (); this.popup_button = new NSPopUpButton () { - Frame = new RectangleF (480 - 156 - 8, 640 - 31 - 26, 156, 26), + Frame = new RectangleF (480 - 156 - 8, 640 - 31 - 24, 156, 26), PullsDown = false }; - + + this.popup_button.Cell.ControlSize = NSControlSize.Small; + this.popup_button.Font = NSFontManager.SharedFontManager.FontWithFamily + ("Lucida Grande", NSFontTraitMask.Condensed, 0, NSFont.SmallSystemFontSize); + this.popup_button.AddItem ("All Folders"); this.popup_button.Menu.AddItem (NSMenuItem.SeparatorItem); this.popup_button.AddItems (SparkleShare.Controller.Folders.ToArray ());