mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Add support for spacer items
This commit is contained in:
@@ -153,6 +153,14 @@ TouchBar.Label = class TouchBarLabel extends TouchBarItem {
|
||||
}
|
||||
}
|
||||
|
||||
TouchBar.Spacer = class TouchBarSpacer extends TouchBarItem {
|
||||
constructor (config) {
|
||||
super(config)
|
||||
this.type = 'spacer'
|
||||
this.size = config.size
|
||||
}
|
||||
}
|
||||
|
||||
TouchBar.Popover = class TouchBarPopover extends TouchBarItem {
|
||||
constructor (config) {
|
||||
super(config)
|
||||
|
||||
Reference in New Issue
Block a user