Last updated 4 years ago
Was this helpful?
在触摸条中为本机macOS应用程序创建一个label标签
进程:
new TouchBarLabel(options)
用途:创建一个新的label标签
options Object
options
label String (可选) - 要显示的文本
label
textColor String (可选) - 十六进制的文本颜色, 如#ABCDEF.
textColor
#ABCDEF
TouchBarLabel有以下属性:
TouchBarLabel
touchBarLabel.label
属性:label标签的当前文本
touchBarLabel.textColor
属性:label标签的当前文本颜色