refactor layout loading to add multiple layout, templates and references

This commit is contained in:
2017-02-01 20:35:57 +00:00
parent ed02e38805
commit 70792669e7
5 changed files with 97 additions and 51 deletions

View File

@@ -1,5 +1,8 @@
<?xml version="1.0"?>
<layout>
<layout id="button">
</layout>
<layout id="main">
<node dir="col" wrap="0" width="100%" height="100%" pad="5">
<!-- toolbar -->
<border height="50" width="100%" pad="5" dir="row" color=".2">
@@ -34,8 +37,8 @@
</plane>
<!-- content panel -->
<plane width="1" grow="1" height="100%" pad="30" wrap="1">
<border thickness="5" border-color="1" color=".4" height="100%">
<shape type="round-rect" width="100%" height="100%"></shape>
<border thickness="5" border-color="1" color=".4" height="100%" pad="10">
<shape type="round-rect" border-color=".5" thickness="4" width="100%" height="100%"></shape>
</border>
</plane>
</plane>