TouchBar触摸条拾色器
在本地MacOS应用程序的触摸条中创建颜色选择器
进程: 主进程
new TouchBarColorPicker(options) 实验功能
new TouchBarColorPicker(options) 实验功能用途:创建颜色选择器
optionsObjectavailableColorsString[] (可选) - 十六进制格式的可选颜色组成的字符串数组selectedColorString (可选) - 选中项的十六进制格式颜色 如#ABCDEF.changeFunction (可选) - 选择颜色时调用
实例属性
TouchBarColorPicker有以下属性:
touchBarColorPicker.availableColors
touchBarColorPicker.availableColors属性:颜色选择器的可选颜色
touchBarColorPicker.selectedColor
touchBarColorPicker.selectedColor属性:颜色选择器当前选择的颜色
Last updated
Was this helpful?