mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add support for setting TouchBarLabel text color
This commit is contained in:
@@ -8,6 +8,7 @@ Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
|
||||
* `options` Object
|
||||
* `label` String (optional) - Text to display.
|
||||
* `textColor` String (optional) - Hex color of text, i.e `#ABCDEF`.
|
||||
|
||||
### Instance Properties
|
||||
|
||||
@@ -17,3 +18,8 @@ The following properties are available on instances of `TouchBarLabel`:
|
||||
|
||||
The label's current text. Changing this value immediately updates the label in
|
||||
the touch bar.
|
||||
|
||||
#### `touchBarLabel.textColor`
|
||||
|
||||
The label's current text color. Changing this value immediately updates the
|
||||
label in the touch bar.
|
||||
|
||||
Reference in New Issue
Block a user