diff options
author | Larry Ewing <lewing@xamarin.com> | 2018-05-16 18:58:34 +0300 |
---|---|---|
committer | Larry Ewing <lewing@microsoft.com> | 2018-07-16 22:05:49 +0300 |
commit | 8d88963577cb32072ba4e039250aaf6da0f2afac (patch) | |
tree | 600149ff9707957ae7d33a8b6f0f480e39bdc2ce /Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs | |
parent | f5f245d7bbf156e87d117a158698533036e73331 (diff) |
Add hex string display
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs index 33ead00..3b3aaef 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs @@ -45,7 +45,7 @@ namespace Xamarin.PropertyEditing.Mac this.popover = new NSPopover (); popover.Behavior = NSPopoverBehavior.Transient; popover.ContentViewController = brushTabViewController = new BrushTabViewController { - PreferredContentSize = new CGSize (300, 280) + PreferredContentSize = new CGSize (250, 300) }; RowHeight = 230 + 28; @@ -54,7 +54,6 @@ namespace Xamarin.PropertyEditing.Mac TranslatesAutoresizingMaskIntoConstraints = false, ControlSize = NSControlSize.Small, Font = NSFont.FromFontName (DefaultFontName, DefaultFontSize), - Popover = this.popover }; popupButtonList = new NSMenu (); @@ -82,7 +81,7 @@ namespace Xamarin.PropertyEditing.Mac set => base.ViewModel = value; } - readonly NSPopUpButton popUpButton; + readonly ColorPopUpButton popUpButton; readonly BrushTabViewController colorEditor; readonly NSPopover popover; readonly BrushTabViewController brushTabViewController; @@ -134,6 +133,7 @@ namespace Xamarin.PropertyEditing.Mac { this.colorEditor.ViewModel = ViewModel; this.brushTabViewController.ViewModel = ViewModel; + this.popUpButton.Popover = ViewModel.Property.CanWrite ? popover : null; if (ViewModel.Solid != null) { var title = GetTitle (); |