mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-30 04:39:56 +00:00
Updated Layouts (markdown)
parent
df70fd772f
commit
b1abaf33d4
1 changed files with 40 additions and 5 deletions
45
Layouts.md
45
Layouts.md
|
@ -119,6 +119,10 @@ Each label can have the following properties:
|
|||
| followKeyLabelRatio | 192 | keepBackgroundAspectRatio | 1048576 |
|
||||
| followKeyHintLabelRatio | 320 | disableKeyHintLabel | 1073741824 |
|
||||
| hasPopupHint | 512 | disableAdditionalPopupKeys | 2147483648 |
|
||||
|
||||
_*To find the flag values, the hex value of each `labelFlags` was converted to base ten by searching for 0x## in the DuckDuckGo search engine._
|
||||
<br>
|
||||
_The default hex values are listed [here](https://github.com/Helium314/HeliBoard/blob/71d98e1e4f05d720f61cdcb7f7ba8b97e32ed7de/app/src/main/res/values/attrs.xml#L251)._
|
||||
|
||||
</details>
|
||||
|
||||
|
@ -306,10 +310,6 @@ Here are the different classes:
|
|||
```
|
||||
</details>
|
||||
|
||||
# Examples of JSON files
|
||||
|
||||
[Here](https://github.com/Helium314/HeliBoard/discussions/1132#discussion-7260853) are some sample JSON files that customize all the keyboard views.
|
||||
|
||||
# Tips
|
||||
|
||||
* To hide a hint for a specific key, add the code `{ "type": "placeholder" }` to the first position when editing popup labels. The hint will not appear regardless of Heliboard settings
|
||||
|
@ -345,7 +345,42 @@ Here are the different classes:
|
|||
```json
|
||||
// Keyboard view space bar with numpad view space bar icon
|
||||
{ "label": "!icon/space_key_for_number_layout|!code/32", "labelFlags": 4, "width": -1 },
|
||||
// @ is displayed on the key, but the letter a will be written
|
||||
// @ is displayed on the key, but the letter `a` will be written
|
||||
{ "label": "@|!code/97", "width": -1 }
|
||||
```
|
||||
</details>
|
||||
|
||||
* In popups, to define a precise number of columns for displaying characters, you need to use the `{ "label": "!autoColumnOrder!X" }`, code where `X` is the number of columns.
|
||||
|
||||
<details>
|
||||
<summary><b><i>Click to see example with `!autoColumnOrder!X`</i></b></summary>
|
||||
<br>
|
||||
|
||||
```json
|
||||
{ "label": ".", "width": 0.1, "type": "function", "popup": { "relevant":
|
||||
[
|
||||
{ "label": "!autoColumnOrder!4" },
|
||||
{ "label": "," },
|
||||
{ "label": "?" },
|
||||
{ "label": "!" },
|
||||
{ "label": "#" },
|
||||
{ "label": "(" },
|
||||
{ "label": ")" },
|
||||
{ "label": "/" },
|
||||
{ "label": ";" },
|
||||
{ "label": "@" },
|
||||
{ "label": "'" },
|
||||
{ "label": ":" },
|
||||
{ "label": "-" },
|
||||
{ "label": "\"" },
|
||||
{ "label": "+" },
|
||||
{ "label": "%" },
|
||||
{ "label": "&" }
|
||||
] }
|
||||
},
|
||||
```
|
||||
</details>
|
||||
|
||||
# Examples of JSON files
|
||||
|
||||
[Here](https://github.com/Helium314/HeliBoard/discussions/1132#discussion-7260853) are some sample JSON files that customize all the keyboard views.
|
Loading…
Add table
Add a link
Reference in a new issue