mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
feat(tray): add direction
option
This commit is contained in:
parent
d2adecb935
commit
b037a55fb7
2 changed files with 43 additions and 5 deletions
|
@ -6,7 +6,10 @@ Displays a fully interactive icon tray using the KDE `libappindicator` protocol.
|
|||
|
||||
> Type: `tray`
|
||||
|
||||
***This module provides no configuration options.***
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
|-------------|----------|-----------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
|
||||
| `direction` | `string` | `left_to_right` if bar is horizontal, `top_to_bottom` otherwise | Direction to display the tray items. Possible values: `top_to_bottom`, `bottom_to_top`, `left_to_right`, `right_to_left` |
|
||||
|
||||
<details>
|
||||
<summary>JSON</summary>
|
||||
|
@ -15,7 +18,8 @@ Displays a fully interactive icon tray using the KDE `libappindicator` protocol.
|
|||
{
|
||||
"end": [
|
||||
{
|
||||
"type": "tray"
|
||||
"type": "tray",
|
||||
"direction": "top_to_bottom"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -29,6 +33,7 @@ Displays a fully interactive icon tray using the KDE `libappindicator` protocol.
|
|||
```toml
|
||||
[[end]]
|
||||
type = "tray"
|
||||
direction = "top_to_bottom"
|
||||
```
|
||||
|
||||
</details>
|
||||
|
@ -39,6 +44,7 @@ type = "tray"
|
|||
```yaml
|
||||
end:
|
||||
- type: "tray"
|
||||
direction: "top_to_bottom"
|
||||
```
|
||||
|
||||
</details>
|
||||
|
@ -49,7 +55,10 @@ end:
|
|||
```corn
|
||||
{
|
||||
end = [
|
||||
{ type = "tray" }
|
||||
{
|
||||
type = "tray"
|
||||
direction = "top_to_bottom"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
@ -63,4 +72,4 @@ end:
|
|||
| `.tray` | Tray widget box |
|
||||
| `.tray .item` | Tray icon button |
|
||||
|
||||
For more information on styling, please see the [styling guide](styling-guide).
|
||||
For more information on styling, please see the [styling guide](styling-guide).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue