Updated Customize UI (markdown)

galister 2024-08-12 08:58:02 +00:00
parent b57e9e8b83
commit 964e9d6f2b
1 changed files with 16 additions and 0 deletions

@ -75,6 +75,22 @@ Example:
bg_color: "#353535"
```
## Sprite
Displays an image / sprite from a sprite sheet.
Properties:
- `sprite`: The path to the DDS texture file. Absolute, or relative to `~/.config/wlxoverlay`.
- `sprite_st`: List of 4 floats. First 2 elements are UV scale, last 2 elements are UV offset.
Example:
```yaml
- type: Sprite
rect: [0, 0, 64, 64]
sprite: icons.dds # relative to ~/.config/wlxoverlay
sprite_st: [1, 1, 0, 0] # to display entire image
```
## Label
Displays some kind of text.