wgui: Separate user and wgui assets, topmost widgets (poc)

This commit is contained in:
Aleksander
2025-10-05 13:48:58 +02:00
parent 71d7d50e35
commit 3dff9c5882
32 changed files with 442 additions and 151 deletions

View File

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
<path fill="white" d="M8.4 17L7 15.6l3.6-3.6L7 8.425l1.4-1.4l3.6 3.6l3.575-3.6l1.4 1.4l-3.6 3.575l3.6 3.6l-1.4 1.4L12 13.4z" />
</svg>

After

Width:  |  Height:  |  Size: 220 B

View File

@@ -0,0 +1,25 @@
<layout>
<elements>
<rectangle
flex_direction="column"
round="8"
border="2"
border_color="#778899"
color="#001122ee"
padding="2">
<!-- window title -->
<rectangle width="100%" height="100%" round="4" align_items="center" justify_content="space_between"
gradient="vertical" color="#224466" color2="#113355">
<label margin_left="8" text="Window title" weight="bold" />
<sprite src_internal="wgui/close.svg" width="24" height="24" />
</rectangle>
<!-- content itself -->
<div width="100%" height="100%" padding="8" gap="4" flex_direction="column">
<label text="Window content" />
<Button color="#9911AA" text="I'm clickable." width="128" height="24" />
</div>
</rectangle>
</elements>
</layout>