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
|
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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue