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