Process:
实例属性
以下为 TouchBarScrubber
实例的可用属性:
touchBarScrubber.items
touchBarScrubber.selectedStyle
一个String
,用来表示在scrubber内被选择的组件应有的样式。 改变这个值会立刻刷新touch bar内的控件。 可选值
background
- 映射为[NSScrubberSelectionStyle roundedBackgroundStyle]
outline
- 映射为none
- Removes all styles.
touchBarScrubber.overlayStyle
一个String
,用来表示在scrubber内被选择的组件应有的样式。 该样式将会覆盖在scrubber组件之上而非其后。 改变这个值会立刻刷新touch bar的控件。 可选值:
background
- 映射到[NSScrubberSelectionStyle roundedBackgroundStyle]
outline
- 映射到[NSScrubberSelectionStyle outlineOverlayStyle]
none
- Removes all styles.
touchBarScrubber.showArrowButtons
touchBarScrubber.mode
A String
representing the mode of this scrubber. 改变这个值会立刻刷新touch bar内的控件。 可选值
fixed
- 映射到NSScrubberModeFixed
touchBarScrubber.continuous
A Boolean
representing whether this scrubber is continuous or not. 改变这个值会立刻刷新touch bar内的控件。