From dccfe8d8808a21f5af393f5c165ff31bdbc502d1 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 13 Jul 2018 21:48:36 -0500 Subject: Draw icons if the image is set --- .../Controls/Custom/BrushTabViewController.cs | 12 +- .../Controls/Custom/ColorComponentEditor.cs | 2 +- .../Custom/ColorComponentViewController.cs | 2 +- .../Controls/Custom/DrawingExtensions.cs | 1 - .../Custom/EmptyBrushEditorViewController.cs | 2 +- .../Custom/MaterialBrushEditorViewController.cs | 2 +- .../Controls/Custom/ResourceBrushViewController.cs | 8 +- .../Custom/SolidColorBrushEditorViewController.cs | 2 +- .../Controls/Custom/UnderlinedTabViewController.cs | 109 ++++- .../Controls/Custom/UnderlinedTextField.cs | 56 ++- .../Resources/property-brush-gradient-16.png | Bin 0 -> 162 bytes .../Resources/property-brush-gradient-16@2x.png | Bin 0 -> 372 bytes .../Resources/property-brush-gradient-16~dark.png | Bin 0 -> 175 bytes .../property-brush-gradient-16~dark@2x.png | Bin 0 -> 332 bytes .../property-brush-gradient-16~dark~sel.png | Bin 0 -> 137 bytes .../property-brush-gradient-16~dark~sel@2x.png | Bin 0 -> 225 bytes .../Resources/property-brush-gradient-16~sel.png | Bin 0 -> 137 bytes .../property-brush-gradient-16~sel@2x.png | Bin 0 -> 225 bytes .../Resources/property-brush-image-16.png | Bin 0 -> 187 bytes .../Resources/property-brush-image-16@2x.png | Bin 0 -> 298 bytes .../Resources/property-brush-image-16~dark.png | Bin 0 -> 180 bytes .../Resources/property-brush-image-16~dark@2x.png | Bin 0 -> 302 bytes .../Resources/property-brush-image-16~dark~sel.png | Bin 0 -> 166 bytes .../property-brush-image-16~dark~sel@2x.png | Bin 0 -> 284 bytes .../Resources/property-brush-image-16~sel.png | Bin 0 -> 166 bytes .../Resources/property-brush-image-16~sel@2x.png | Bin 0 -> 284 bytes .../Resources/property-brush-none-16.png | Bin 0 -> 133 bytes .../Resources/property-brush-none-16@2x.png | Bin 0 -> 186 bytes .../Resources/property-brush-none-16~dark.png | Bin 0 -> 132 bytes .../Resources/property-brush-none-16~dark@2x.png | Bin 0 -> 181 bytes .../Resources/property-brush-none-16~dark~sel.png | Bin 0 -> 126 bytes .../property-brush-none-16~dark~sel@2x.png | Bin 0 -> 173 bytes .../Resources/property-brush-none-16~sel.png | Bin 0 -> 126 bytes .../Resources/property-brush-none-16~sel@2x.png | Bin 0 -> 173 bytes .../Resources/property-brush-resources-16.png | Bin 0 -> 113 bytes .../Resources/property-brush-resources-16@2x.png | Bin 0 -> 147 bytes .../Resources/property-brush-resources-16~dark.png | Bin 0 -> 114 bytes .../property-brush-resources-16~dark@2x.png | Bin 0 -> 142 bytes .../property-brush-resources-16~dark~sel.png | Bin 0 -> 110 bytes .../property-brush-resources-16~dark~sel@2x.png | Bin 0 -> 138 bytes .../Resources/property-brush-resources-16~sel.png | Bin 0 -> 110 bytes .../property-brush-resources-16~sel@2x.png | Bin 0 -> 138 bytes .../Resources/property-brush-solid-16.png | Bin 0 -> 106 bytes .../Resources/property-brush-solid-16@2x.png | Bin 0 -> 129 bytes .../Resources/property-brush-solid-16~dark.png | Bin 0 -> 107 bytes .../Resources/property-brush-solid-16~dark@2x.png | Bin 0 -> 127 bytes .../Resources/property-brush-solid-16~dark~sel.png | Bin 0 -> 104 bytes .../property-brush-solid-16~dark~sel@2x.png | Bin 0 -> 124 bytes .../Resources/property-brush-solid-16~sel.png | Bin 0 -> 104 bytes .../Resources/property-brush-solid-16~sel@2x.png | Bin 0 -> 124 bytes .../Xamarin.PropertyEditing.Mac.csproj | 456 +++++++++++---------- 51 files changed, 404 insertions(+), 248 deletions(-) create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark~sel@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~sel@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark~sel@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~sel@2x.png create mode 100644 Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16.png create mode 100644 Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark~sel@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~sel@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark~sel@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~sel@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark~sel@2x.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~sel.png create mode 100755 Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~sel@2x.png (limited to 'Xamarin.PropertyEditing.Mac') diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/BrushTabViewController.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/BrushTabViewController.cs index c47f88a..c9f04d6 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/BrushTabViewController.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/BrushTabViewController.cs @@ -12,7 +12,7 @@ namespace Xamarin.PropertyEditing.Mac { public BrushTabViewController () { - PreferredContentSize = new CGSize (300, 230); + PreferredContentSize = new CGSize (430, 230); TransitionOptions = NSViewControllerTransitionOptions.None; } @@ -42,28 +42,32 @@ namespace Xamarin.PropertyEditing.Mac var solid = new SolidColorBrushEditorViewController (); solid.ViewModel = ViewModel; item.ViewController = solid; + item.Image = NSImage.ImageNamed ("property-brush-solid-16"); break; case CommonBrushType.MaterialDesign: var material = new MaterialBrushEditorViewController (); material.ViewModel = ViewModel; item.ViewController = material; + item.Image = NSImage.ImageNamed ("property-brush-none-16"); break; case CommonBrushType.Resource: var resource = new ResourceBrushViewController (); resource.ViewModel = ViewModel; item.ViewController = resource; + item.Image = NSImage.ImageNamed ("property-brush-resources-16"); break; case CommonBrushType.Gradient: var gradient = new EmptyBrushEditorViewController (); gradient.ViewModel = ViewModel; item.ViewController = gradient; + item.Image = NSImage.ImageNamed ("property-brush-gradient-16"); break; case CommonBrushType.NoBrush: var none = new EmptyBrushEditorViewController (); none.ViewModel = ViewModel; item.ViewController = none; + item.Image = NSImage.ImageNamed ("property-brush-none-16"); break; - } if (item.ViewController != null) { BrushTypeTable [brushType] = TabViewItems.Length; @@ -112,9 +116,7 @@ namespace Xamarin.PropertyEditing.Mac public override void ViewDidLoad () { - var old = View.Frame; - old.Height = 230; - View.Frame = old; + View.Frame = new CGRect (0, 0, 430,230); this.inhibitSelection = true; base.ViewDidLoad (); diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentEditor.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentEditor.cs index 900635f..aefe3a0 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentEditor.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentEditor.cs @@ -132,7 +132,7 @@ namespace Xamarin.PropertyEditing.Mac }; } - public override CGSize IntrinsicContentSize => new CGSize (100, 200); + public override CGSize IntrinsicContentSize => new CGSize (100, 300); void UpdateComponent (object sender, EventArgs args) { diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentViewController.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentViewController.cs index 9680752..1b3e93b 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentViewController.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentViewController.cs @@ -12,7 +12,7 @@ namespace Xamarin.PropertyEditing.Mac public ColorComponentViewController (ChannelEditorType type) : base () { - PreferredContentSize = new CGSize (200, 220); + PreferredContentSize = new CGSize (100, 400); EditorType = type; } diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/DrawingExtensions.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/DrawingExtensions.cs index e206dfa..1137072 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/DrawingExtensions.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/DrawingExtensions.cs @@ -19,7 +19,6 @@ namespace Xamarin.PropertyEditing.Mac public static NSImage CreateSwatch (this CommonColor color, CGSize size, CIColor c0, CIColor c1) => new NSImage (GenerateCheckerboard (new CGRect (0, 0, size.Width, size.Height), c0, c1), size); - public static CGImage GenerateCheckerboard (CGRect frame) => GenerateCheckerboard (frame, CIColor.WhiteColor, CIColor.BlackColor); diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/EmptyBrushEditorViewController.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/EmptyBrushEditorViewController.cs index 24273e1..14e5bbc 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/EmptyBrushEditorViewController.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/EmptyBrushEditorViewController.cs @@ -9,7 +9,7 @@ namespace Xamarin.PropertyEditing.Mac { public EmptyBrushEditorViewController () { - PreferredContentSize = new CGSize (100, 100); + PreferredContentSize = new CGSize (430, 230); } private NSButton brushEditor; diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/MaterialBrushEditorViewController.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/MaterialBrushEditorViewController.cs index 933eeef..d1af213 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/MaterialBrushEditorViewController.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/MaterialBrushEditorViewController.cs @@ -11,7 +11,7 @@ namespace Xamarin.PropertyEditing.Mac { public MaterialBrushEditorViewController () { - PreferredContentSize = new CGSize (200, 230); + PreferredContentSize = new CGSize (430, 230); } private MaterialView materialEditor; diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/ResourceBrushViewController.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/ResourceBrushViewController.cs index 95b44c8..41a517b 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/ResourceBrushViewController.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/ResourceBrushViewController.cs @@ -145,11 +145,11 @@ namespace Xamarin.PropertyEditing.Mac AddColumn (previewColumn); } - ResourceSelectorViewModel viewModel; + private ResourceSelectorViewModel viewModel; public ResourceSelectorViewModel ViewModel { - get => viewModel; + get => this.viewModel; set { - viewModel = value; + this.viewModel = value; DataSource = new ResourceDataSource (viewModel); } } @@ -162,7 +162,7 @@ namespace Xamarin.PropertyEditing.Mac public ResourceBrushViewController () { - PreferredContentSize = new CGSize (100, 200); + PreferredContentSize = new CGSize (430, 230); viewDelegate = new ResourceBrushPropertyViewDelegate (); } diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/SolidColorBrushEditorViewController.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/SolidColorBrushEditorViewController.cs index 965ac0d..a024dcc 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/SolidColorBrushEditorViewController.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/SolidColorBrushEditorViewController.cs @@ -11,7 +11,7 @@ namespace Xamarin.PropertyEditing.Mac public SolidColorBrushEditorViewController () { - PreferredContentSize = new CGSize (300, 230); + PreferredContentSize = new CGSize (430, 230); } public override void OnPropertyChanged (object sender, PropertyChangedEventArgs e) diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTabViewController.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTabViewController.cs index 8225319..3526287 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTabViewController.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTabViewController.cs @@ -3,40 +3,111 @@ using AppKit; namespace Xamarin.PropertyEditing.Mac { + internal class SegmentStack : NSView + { + class SegmentItem + { + public NSImage Image { get; set; } + public string Label { get; set; } + public NSView View { get; set; } + } + + + private SegmentItem[] segments = new SegmentItem[0]; + private NSStackView stackView = new NSStackView () { + Spacing = 3 + }; + + public void SetImage (NSImage image, int segment) + { + var item = this.segments[segment]; + + item.Image = image; + if (item.Image != null) + return; + + item.View = new UnderlinedImageView (image.Name) { + // Image = image + }; + this.stackView.AddView (item.View, NSStackViewGravity.Leading); + } + + public NSImage GetImage (int segment) + { + return this.segments[segment].Image; + } + + public void SetLabel (string label, int segment) + { + var item = this.segments[segment]; + item.Label = label; + if (item.Image != null) + return; + + item.View = new UnderlinedTextField () { + BackgroundColor = NSColor.Clear, + Editable = false, + Bezeled = false, + StringValue = label + }; + this.stackView.AddView (item.View, NSStackViewGravity.Leading); + } + + public string GetLabel (int segment) + { + return this.segments[segment].Label; + } + + public int SegmentCount + { + get => this.segments.Length; + set + { + this.segments = new SegmentItem[value]; + } + } + } + internal class UnderlinedTabViewController : NotifyingTabViewController where TViewModel : NotifyingObject { - private NSStackView labelStack = new NSStackView () { + private NSStackView tabStack = new NSStackView () { Spacing = 4f, }; public override void NumberOfItemsChanged (NSTabView tabView) { base.NumberOfItemsChanged (tabView); - var items = this.labelStack.Views.ToList (); + var items = this.tabStack.Views.ToList (); foreach (var view in items) { - this.labelStack.RemoveView (view); + this.tabStack.RemoveView (view); } var i = 0; foreach (var item in TabViewItems) { - this.labelStack.AddView (new UnderlinedTextField () { - BackgroundColor = NSColor.Clear, - Editable = false, - Bezeled = false, - StringValue = item.Label, - Selected = i == SelectedTabViewItemIndex, - }, NSStackViewGravity.Leading); + if (item.Image != null) { + this.tabStack.AddView (new UnderlinedImageView (item.Image.Name) { + Selected = i == SelectedTabViewItemIndex + }, NSStackViewGravity.Leading); + } else { + this.tabStack.AddView (new UnderlinedTextField () { + BackgroundColor = NSColor.Clear, + Editable = false, + Bezeled = false, + StringValue = item.Label, + Selected = i == SelectedTabViewItemIndex, + }, NSStackViewGravity.Leading); + } i++; } } public override void MouseDown (NSEvent theEvent) { - var hit = View.HitTest (View.Superview.ConvertPointFromView (theEvent.LocationInWindow, null)); - if (!(hit is UnderlinedTextField)) + NSView hit = View.HitTest (View.Superview.ConvertPointFromView (theEvent.LocationInWindow, null)); + if (!(hit is ISelectable)) return; int i = 0; - foreach (var label in labelStack.Views) { + foreach (var label in tabStack.Views) { if (hit == label) { SelectedTabViewItemIndex = i; break; @@ -48,10 +119,10 @@ namespace Xamarin.PropertyEditing.Mac public override void DidSelect (NSTabView tabView, NSTabViewItem item) { base.DidSelect (tabView, item); - for (int i = 0; i < this.labelStack.Views.Length; i++) { - var underlined = this.labelStack.Views[i] as UnderlinedTextField; - if (underlined != null) - underlined.Selected = SelectedTabViewItemIndex == i; + for (int i = 0; i < this.tabStack.Views.Length; i++) { + var tabItem = this.tabStack.Views[i] as ISelectable; + if (tabItem != null) + tabItem.Selected = SelectedTabViewItemIndex == i; } } @@ -59,11 +130,11 @@ namespace Xamarin.PropertyEditing.Mac { var stack = new NSStackView () { Spacing = 0, - Alignment = NSLayoutAttribute.Width, + Alignment = NSLayoutAttribute.Left, Orientation = NSUserInterfaceLayoutOrientation.Vertical }; - stack.AddView (this.labelStack, NSStackViewGravity.Leading); + stack.AddView (this.tabStack, NSStackViewGravity.Top); stack.AddView (TabView, NSStackViewGravity.Bottom); View = stack; } diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTextField.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTextField.cs index 2bc17f3..39deb43 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTextField.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTextField.cs @@ -3,7 +3,59 @@ using CoreGraphics; namespace Xamarin.PropertyEditing.Mac { - internal class UnderlinedTextField : NSTextField + + internal interface ISelectable { + bool Selected { get; set; } + } + + internal class UnderlinedImageView : NSImageView, ISelectable + { + public UnderlinedImageView (string name) + { + this.name = name; + } + + private string name; + + private bool selected; + public bool Selected + { + get => selected; + set { + //if (selected == value) + // return; + selected = value; + + var version = PropertyEditorPanel.ThemeManager.Theme == Themes.PropertyEditorTheme.Dark ? $"{name}~dark" : name; + Image = NSImage.ImageNamed (selected ? $"{version}~sel" : version); + + //Enabled = value; + NeedsDisplay = true; + } + } + + public override void DrawRect (CGRect dirtyRect) + { + base.DrawRect (dirtyRect); + if (!Selected) + return; + + NSBezierPath path = new NSBezierPath (); + path.AppendPathWithRect (new CGRect (Bounds.X + 1, Bounds.Top + 3, Bounds.Width - 2, 3)); + (selected? NSColor.Text: NSColor.DisabledControlText).Set (); + path.Fill (); + } + + public override CGSize IntrinsicContentSize + { + get { + var size = base.IntrinsicContentSize; + return new CGSize (size.Width + 2, size.Height + 12); + } + } + } + + internal class UnderlinedTextField : NSTextField, ISelectable { public UnderlinedTextField () { @@ -22,7 +74,7 @@ namespace Xamarin.PropertyEditing.Mac // return; selected = value; TextColor = selected ? NSColor.Text : NSColor.DisabledControlText; - + //Enabled = value; NeedsDisplay = true; } diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16.png new file mode 100755 index 0000000..38dd536 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16@2x.png new file mode 100755 index 0000000..e322b74 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark.png new file mode 100755 index 0000000..05f41ab Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark@2x.png new file mode 100755 index 0000000..44bdb9a Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark~sel.png new file mode 100755 index 0000000..00b89eb Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark~sel@2x.png new file mode 100755 index 0000000..01e5392 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~dark~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~sel.png new file mode 100755 index 0000000..00b89eb Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~sel@2x.png new file mode 100755 index 0000000..01e5392 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-gradient-16~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16.png new file mode 100755 index 0000000..18c3fb0 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16@2x.png new file mode 100755 index 0000000..888605e Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark.png new file mode 100755 index 0000000..8c4ff75 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark@2x.png new file mode 100755 index 0000000..d4f7b5f Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark~sel.png new file mode 100755 index 0000000..bb74dd5 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark~sel@2x.png new file mode 100755 index 0000000..60900bc Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~dark~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~sel.png new file mode 100755 index 0000000..bb74dd5 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~sel@2x.png new file mode 100755 index 0000000..60900bc Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-image-16~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16.png new file mode 100644 index 0000000..61a8083 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16@2x.png new file mode 100644 index 0000000..2ee673b Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark.png new file mode 100755 index 0000000..933a8c6 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark@2x.png new file mode 100755 index 0000000..985d294 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark~sel.png new file mode 100755 index 0000000..b8e1080 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark~sel@2x.png new file mode 100755 index 0000000..0c0d3c0 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~dark~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~sel.png new file mode 100755 index 0000000..b8e1080 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~sel@2x.png new file mode 100755 index 0000000..0c0d3c0 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-none-16~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16.png new file mode 100755 index 0000000..ed674fe Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16@2x.png new file mode 100755 index 0000000..f0f8799 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark.png new file mode 100755 index 0000000..0180190 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark@2x.png new file mode 100755 index 0000000..a07d341 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark~sel.png new file mode 100755 index 0000000..1b3520b Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark~sel@2x.png new file mode 100755 index 0000000..5e2fd96 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~dark~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~sel.png new file mode 100755 index 0000000..1b3520b Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~sel@2x.png new file mode 100755 index 0000000..5e2fd96 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-resources-16~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16.png new file mode 100755 index 0000000..751fb88 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16@2x.png new file mode 100755 index 0000000..69ce2d4 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark.png new file mode 100755 index 0000000..4b1b582 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark@2x.png new file mode 100755 index 0000000..7bf8685 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark~sel.png new file mode 100755 index 0000000..3bbdbb0 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark~sel@2x.png new file mode 100755 index 0000000..0aa1109 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~dark~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~sel.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~sel.png new file mode 100755 index 0000000..3bbdbb0 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~sel.png differ diff --git a/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~sel@2x.png b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~sel@2x.png new file mode 100755 index 0000000..0aa1109 Binary files /dev/null and b/Xamarin.PropertyEditing.Mac/Resources/property-brush-solid-16~sel@2x.png differ diff --git a/Xamarin.PropertyEditing.Mac/Xamarin.PropertyEditing.Mac.csproj b/Xamarin.PropertyEditing.Mac/Xamarin.PropertyEditing.Mac.csproj index 6f29164..3fa13b6 100644 --- a/Xamarin.PropertyEditing.Mac/Xamarin.PropertyEditing.Mac.csproj +++ b/Xamarin.PropertyEditing.Mac/Xamarin.PropertyEditing.Mac.csproj @@ -1,213 +1,245 @@ - - - - Debug - AnyCPU - {E8F4F0EB-C2B1-4116-8459-E076E0E0E485} - {A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - Xamarin.PropertyEditing.Mac - Xamarin.PropertyEditing.Mac - v4.6 - Resources - - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - false - false - false - false - false - - - - - - - - - true - bin\Release - - - prompt - 4 - false - false - false - false - false - - - - - - - - - - ../../../xamarin.snk - true - $(DefineConstants);STRONG_NAMED - - - - - - - - - - - - PropertyEditorPanel.cs - - - - - - - - - - - - - - - - - - - - - - LocalizationResources.resx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {A0B6FE73-D046-4E1C-BA9D-F20683889C5A} - Xamarin.PropertyEditing - - - - - ResXFileCodeGenerator - LocalizationResources.Designer.cs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Debug + AnyCPU + {E8F4F0EB-C2B1-4116-8459-E076E0E0E485} + {A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + Xamarin.PropertyEditing.Mac + Xamarin.PropertyEditing.Mac + v4.6 + Resources + + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + false + false + false + false + + + + + + true + bin\Release + + prompt + 4 + false + false + false + false + false + + + + + + + ../../../xamarin.snk + true + $(DefineConstants);STRONG_NAMED + + + + + + + + + + + + PropertyEditorPanel.cs + + + + + + + + + + + + + + + + + + + + + + LocalizationResources.resx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {A0B6FE73-D046-4E1C-BA9D-F20683889C5A} + Xamarin.PropertyEditing + + + + + ResXFileCodeGenerator + LocalizationResources.Designer.cs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3