Use icon for consistency with other touch bar APIs
This commit is contained in:
parent
49d48a4eb0
commit
466c39ed19
2 changed files with 2 additions and 2 deletions
|
@ -601,7 +601,7 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
|
|||
NSScrubberImageItemView* view = [scrubber makeItemWithIdentifier:ImageScrubberItemIdentifier
|
||||
owner:self];
|
||||
gfx::Image image;
|
||||
if (item.Get("image", &image)) {
|
||||
if (item.Get("icon", &image)) {
|
||||
view.image = image.AsNSImage();
|
||||
}
|
||||
itemView = view;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# ScrubberItem Object
|
||||
|
||||
* `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
|
||||
|
|
Loading…
Reference in a new issue