event log: make popupbutton smaller
This commit is contained in:
parent
961db1ca45
commit
113b7a942b
|
@ -70,14 +70,14 @@ namespace SparkleShare {
|
||||||
|
|
||||||
private void CreateEvents ()
|
private void CreateEvents ()
|
||||||
{
|
{
|
||||||
Separator = new NSBox (new RectangleF (0, 573, 480, 1)) {
|
Separator = new NSBox (new RectangleF (0, 579, 480, 1)) {
|
||||||
BorderColor = NSColor.LightGray,
|
BorderColor = NSColor.LightGray,
|
||||||
BoxType = NSBoxType.NSBoxCustom
|
BoxType = NSBoxType.NSBoxCustom
|
||||||
};
|
};
|
||||||
|
|
||||||
ContentView.AddSubview (Separator);
|
ContentView.AddSubview (Separator);
|
||||||
|
|
||||||
WebView = new WebView (new RectangleF (0, 0, 480, 573 ), "", ""){
|
WebView = new WebView (new RectangleF (0, 0, 480, 579), "", "") {
|
||||||
PolicyDelegate = new SparkleWebPolicyDelegate ()
|
PolicyDelegate = new SparkleWebPolicyDelegate ()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -97,10 +97,14 @@ namespace SparkleShare {
|
||||||
this.popup_button.RemoveFromSuperview ();
|
this.popup_button.RemoveFromSuperview ();
|
||||||
|
|
||||||
this.popup_button = new NSPopUpButton () {
|
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
|
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.AddItem ("All Folders");
|
||||||
this.popup_button.Menu.AddItem (NSMenuItem.SeparatorItem);
|
this.popup_button.Menu.AddItem (NSMenuItem.SeparatorItem);
|
||||||
this.popup_button.AddItems (SparkleShare.Controller.Folders.ToArray ());
|
this.popup_button.AddItems (SparkleShare.Controller.Folders.ToArray ());
|
||||||
|
|
Loading…
Reference in a new issue