mirror of
https://github.com/wayvr-org/wayvr.git
synced 2026-11-20 00:51:19 -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
17 lines
712 B
XML
17 lines
712 B
XML
<layout version="2">
|
|
<template name="LoadingWithText">
|
|
<div id="root" width="100%" height="100%" align_items="center" justify_content="center">
|
|
<div flex_direction="row" gap="8" align_items="center" >
|
|
<sprite id="sprite_loading" src_builtin="@/dashboard/loading.svg" width="32" height="32" color="on_background"/>
|
|
<label translation="LOADING" weight="bold"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template name="LoadingWithoutText">
|
|
<div id="root" width="100%" height="100%" align_items="center" justify_content="center">
|
|
<sprite id="sprite_loading" src_builtin="@/dashboard/loading.svg" width="32" height="32" color="on_background"/>
|
|
</div>
|
|
</template>
|
|
</layout>
|