类: TouchBarColorPicker
在macOS 应用程序中,为触控栏创建拾色器
进程:主进程
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.