Use icon for consistency with other touch bar APIs

This commit is contained in:
Kevin Sawicki 2017-03-15 09:33:11 -07:00
parent 49d48a4eb0
commit 466c39ed19
2 changed files with 2 additions and 2 deletions

View file

@ -601,7 +601,7 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
NSScrubberImageItemView* view = [scrubber makeItemWithIdentifier:ImageScrubberItemIdentifier NSScrubberImageItemView* view = [scrubber makeItemWithIdentifier:ImageScrubberItemIdentifier
owner:self]; owner:self];
gfx::Image image; gfx::Image image;
if (item.Get("image", &image)) { if (item.Get("icon", &image)) {
view.image = image.AsNSImage(); view.image = image.AsNSImage();
} }
itemView = view; itemView = view;

View file

@ -1,4 +1,4 @@
# ScrubberItem Object # ScrubberItem Object
* `label` String - (Optional) The text to appear in this item * `label` String - (Optional) The text to appear in this item
* `image` NativeImage - (Optional) The image to appear in this item * `icon` NativeImage - (Optional) The image to appear in this item