类:TouchBarColorPicker
类:TouchBarColorPicker
在触控栏中创建一个颜色选择器,用于原生 macOS 应用
进程:主
此类未从 'electron'
模块导出。它仅作为 Electron API 中其他方法的返回值可用。
new TouchBarColorPicker(options)
实例属性
以下属性在 TouchBarColorPicker
实例上可用
touchBarColorPicker.availableColors
表示颜色选择器可供选择的颜色的 string[]
数组。更改此值会立即更新触控栏中的颜色选择器。
touchBarColorPicker.selectedColor
表示颜色选择器当前选中的颜色的 string
十六进制代码。更改此值会立即更新触控栏中的颜色选择器。