Implement abstract syntax tree parsing of XML layout

This commit is contained in:
Keavon Chambers
2020-05-27 04:08:52 -07:00
parent decff5681b
commit 0c7e6bc883
22 changed files with 391 additions and 62 deletions
+6 -6
View File
@@ -1,20 +1,20 @@
<header:file-menu>
<box height="100%" x-padding="10px">
<text height="100%" y-align="0.5" :color="[mildwhite]"></text>
<text height="100%" y-align="50%" :color="['mildwhite']"></text>
</box>
<box height="100%" x-padding="10px">
<text height="100%" y-align="0.5" :color="[mildwhite]">File</text>
<text height="100%" y-align="50%" :color="['mildwhite']">File</text>
</box>
<box height="100%" x-padding="10px">
<text height="100%" y-align="0.5" :color="[mildwhite]">Edit</text>
<text height="100%" y-align="50%" :color="['mildwhite']">Edit</text>
</box>
<box height="100%" x-padding="10px">
<text height="100%" y-align="0.5" :color="[mildwhite]">Comp</text>
<text height="100%" y-align="50%" :color="['mildwhite']">Comp</text>
</box>
<box height="100%" x-padding="10px">
<text height="100%" y-align="0.5" :color="[mildwhite]">View</text>
<text height="100%" y-align="50%" :color="['mildwhite']">View</text>
</box>
<box height="100%" x-padding="10px">
<text height="100%" y-align="0.5" :color="[mildwhite]">Help</text>
<text height="100%" y-align="50%" :color="['mildwhite']">Help</text>
</box>
</header:file-menu>
+4 -4
View File
@@ -1,8 +1,8 @@
<header:window-buttons :maximized="IS_MAXIMIZED">
<box height="100%" y-align="0.5" x-padding="18px">
<header:window-buttons :maximized="IS_MAXIMIZED: (Bool) = false">
<box height="100%" y-align="50%" x-padding="18px">
<icon :src="window_minimize.svg" />
</box>
<box height="100%" y-align="0.5" x-padding="18px">
<box height="100%" y-align="50%" x-padding="18px">
<if :a="{{IS_MAXIMIZED}}">
<icon :src="window_restore_down.svg" />
</if>
@@ -10,7 +10,7 @@
<icon :src="maximize.svg" />
</if>
</box>
<box height="100%" y-align="0.5" x-padding="18px">
<box height="100%" y-align="50%" x-padding="18px">
<icon :src="window_close.svg" />
</box>
</header:window-buttons>