Class: TouchBarColorPicker
Class: TouchBarColorPicker
Create a color picker in the touch bar for native macOS applications
Process: Main
This class is not exported from the 'electron'
module. Он доступен только в качестве возвращаемого значения других методов в Electron API.
new TouchBarColorPicker(options)
Свойства экземпляра
Для экземпляров TouchBarColorPicker
доступны следующие свойства:
touchBarColorPicker.availableColors
A string[]
array representing the color picker's available colors to select. Changing this value immediately updates the color picker in the touch bar.
touchBarColorPicker.selectedColor
A string
hex code representing the color picker's currently selected color. Changing this value immediately updates the color picker in the touch bar.