wayvr/wgui/assets/wgui/window_frame.xml

35 lines
1.1 KiB
XML

<layout>
<elements>
<!--
Window decoration
Make sure to modify WINDOW_DECORATION_PADDING
and WINDOW_DECORATION_HEADER_HEIGHT in the source code accordingly
-->
<rectangle
position="absolute"
consume_mouse_events="1"
flex_direction="column"
round="8"
border="2"
border_color="outline"
color="background"
padding="2">
<!-- window title -->
<div width="100%" height="32" align_items="center" position="relative" justify_content="end">
<div width="100%" justify_content="center">
<label id="text_window_title" weight="bold" color="on_background" />
</div>
<Button id="but_close" border="0" round="4" color="on_background(transparent)" hover_color="primary" position="absolute">
<sprite src_internal="wgui/close.svg" width="32" height="32" color="on_background" />
</Button>
</div>
<!-- content itself -->
<div id="content" padding="8" padding_top="0" gap="4" flex_direction="column">
</div>
</rectangle>
</elements>
</layout>