wgui: Parser: <template> initial support (wip)
This commit is contained in:
3
wgui/uidev-vk/.gitignore
vendored
3
wgui/uidev-vk/.gitignore
vendored
@@ -1 +1,2 @@
|
||||
target
|
||||
target
|
||||
.vscode
|
||||
@@ -1,5 +1,6 @@
|
||||
<layout>
|
||||
<include src="theme.xml" />
|
||||
<include src="templates.xml" />
|
||||
|
||||
<theme>
|
||||
<var key="side_sprite_size" value="26" />
|
||||
@@ -57,6 +58,8 @@
|
||||
|
||||
<!-- main button list -->
|
||||
<div flex_direction="row" gap="8" margin_top="32">
|
||||
<!-- Templates WIP! -->
|
||||
<MenuButton />
|
||||
<rectangle width="120" height="82" round="8" border="2" border_color="#FFFFFF77" color="#00000033" align_items="center" justify_content="center" flex_direction="column" gap="8">
|
||||
<sprite src="dashboard/apps.svg" width="32" height="32" />
|
||||
<label weight="bold" color="#FFFFFF" size="18" text="Apps" />
|
||||
|
||||
19
wgui/uidev-vk/assets/gui/templates.xml
Normal file
19
wgui/uidev-vk/assets/gui/templates.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<layout>
|
||||
<template name="MenuButton">
|
||||
<rectangle
|
||||
width="120"
|
||||
height="82"
|
||||
round="8"
|
||||
border="2"
|
||||
border_color="#FFFFFF77"
|
||||
color="#00000033"
|
||||
align_items="center"
|
||||
justify_content="center"
|
||||
flex_direction="column"
|
||||
gap="8"
|
||||
>
|
||||
<sprite src="dashboard/apps.svg" width="32" height="32" />
|
||||
<label weight="bold" color="#FFFFFF" size="18" text="I'M A TEMPLATE" />
|
||||
</rectangle>
|
||||
</template>
|
||||
</layout>
|
||||
Reference in New Issue
Block a user