mirror of
https://github.com/wayvr-org/wayvr.git
synced 2026-11-21 17:41:27 -08:00
- All new layout xml files now are required to include this metadata
at the top, if they want to be parsed in the new layout v2 behavior:
```xml
<layout version="2">
<!-- rest of the markup -->
</layout>
```
- Add path expansion using '@' for widget resources and includes
The '@' character is always expanded to the assets root directory
(builtin/internal), or the root xml directory (external).
Paths directing to the built-in resources like:
`edit/mouse.svg`
are now required to be written as:
`@/edit/mouse.svg`,
For example:
```xml
<sprite src_builtin="@/edit/mouse.svg" />
```
- All paths without '/' at the start are now treated as relative
to the currently parsing XML (paths like `/usr/share/icons/...`
are still accessible)
- Add support for relative paths for widgets instantiated from
templates
- Rename `<theme>` to `<vars>`
Changes (dash-frontend):
- Adapt and refactor XML files
Changes (wayvr):
- Adapt and refactor XML files
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<layout version="2">
|
|
<vars>
|
|
<var key="width" value="426.666" />
|
|
<var key="height" value="133.333" />
|
|
</vars>
|
|
<elements>
|
|
<rectangle position="absolute" width="10000" height="10000" color="#112233"/>
|
|
<div flex_direction="row">
|
|
<div margin="16" gap="8" flex_direction="column" overflow_y="scroll" >
|
|
<label text="640x200, looping"/>
|
|
<Video src_builtin="@/video.ivf" width="~width" height="~height" looping="1"/>
|
|
<label text="640x200, non-looping "/>
|
|
<Video src_builtin="@/video.ivf" width="~width" height="~height" looping="0"/>
|
|
</div>
|
|
<div margin="16" gap="8" flex_direction="column" overflow_y="scroll" >
|
|
<label text="640x200, looping, speed 2x"/>
|
|
<Video src_builtin="@/video.ivf" width="~width" height="~height" looping="1" speed="2"/>
|
|
<label text="640x200, looping, speed 0.5x"/>
|
|
<Video src_builtin="@/video.ivf" width="~width" height="~height" looping="1" speed="0.5"/>
|
|
<label text="640x200, looping, speed 4x"/>
|
|
<Video src_builtin="@/video.ivf" width="~width" height="~height" looping="1" speed="4"/>
|
|
</div>
|
|
</div>
|
|
</elements>
|
|
</layout>
|