diff options
| author | Jules Aguillon | 2025-06-18 00:49:34 +0200 |
|---|---|---|
| committer | GitHub | 2025-06-18 00:49:34 +0200 |
| commit | 71d278402644fd16a2f407518346746f16538de6 (patch) | |
| tree | 8df119b68d7d0f15b38eebec6277f756dcf01457 /doc | |
| parent | f9b844e98864fc1223687c6836a26e773a80c99f (diff) | |
| download | unexpected-keyboard-71d278402644fd16a2f407518346746f16538de6.tar.gz unexpected-keyboard-71d278402644fd16a2f407518346746f16538de6.zip | |
Add <row scale=""> attribute (#1018)
* Add <row scale=""> attribute
Scale the width of the keys in the row to match a value. Useful to
remove space on the right of the row without adding a 'width' attribute
to each key.
* layouts: Use the 'scale=""' attribute in builtin layouts
This removes the very specific 'width' values.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/Custom-layouts.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/Custom-layouts.md b/doc/Custom-layouts.md index d4e8341..1c37b18 100644 --- a/doc/Custom-layouts.md +++ b/doc/Custom-layouts.md @@ -52,9 +52,11 @@ The `<keyboard>`...`</keyboard>` pair follows the declaration tag and encloses t * `locale_extra_keys`: Whether Unexpected should add language-dependent extra keys from [method.xml](../res/xml/method.xml) to this layout. It accepts `true` or `false`, and defaults to `true`. To disable these automatic additions, specify `locale_extra_keys="false"`. ## Row -The `<row>`...`</row>` pair encloses one row on the keyboard. It has only one optional property: +The `<row>`...`</row>` pair encloses one row on the keyboard. It has the following optional property: * `height`: The height of the row: a positive floating-point value. +* `scale`: A positive floating-point value. If present, scale the width of each key so that the total is equal to the specified value, in key width unit. + A row's default height is 1.0 (one quarter of the keyboard height specified on the Settings menu). The `height` property makes the row taller or shorter than this. For example, if you define a 5-row keyboard but one row has `height="0.7"`, then the keyboard's total height is 4.7 units. If the total is different from 4.0, the keyboard will be taller or shorter than that specified in Settings. ## Key |
