1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 00:58:37 +00:00

Updated README (#274)

Added explanation for missing parameters (background, title and image)
This commit is contained in:
Fedor Zaytsev 2020-02-28 11:35:09 -08:00 committed by GitHub
parent 40c684f528
commit 7e0db70fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,6 +375,31 @@ If you want to longPress for some operations, it is similar to the configuration
"bordered": "false" // "true" or "false"
```
- `background` allow to specify you button background color
```js
"background": "#FF0000",
```
by using background with color "#000000" and bordered == false you can create button without gray background but with background when the button is pressed
- `title` specify button title
```js
"title": "hello"
```
- `image` specify button icon
```js
"image": {
//Can be either of those
"base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdB...."
//or
"filePath": "~/img.png"
}
```
### Roadmap
- [x] Create the first prototype with TouchBar in Storyboard