- use parking_lot for mutex (less restrictive and easier to use) - simplify event callbacks and widget type casting - defer component initialization at start (required for setting the initial state of sliders) - fix non-working scroll events - update testbed.xml - replace slider with the real one in bar.xml - show slider text on its handle
30 lines
1.3 KiB
XML
30 lines
1.3 KiB
XML
<layout>
|
|
<include src="wlx_theme.xml" />
|
|
|
|
<template name="TopButton">
|
|
<rectangle id="~id" color="~bg_color" padding="8" round="50%">
|
|
<sprite color="~device_color" width="48" height="48" src="${src}" />
|
|
</rectangle>
|
|
</template>
|
|
|
|
<elements>
|
|
<div box_sizing="content_box" flex_direction="column" justify_content="center">
|
|
<rectangle padding="10" gap="8" round="100%" color="~bg_color" justify_content="center">
|
|
<TopButton id="lock" src="bar/lock_open.svg" />
|
|
<TopButton id="anchor" src="bar/anchor.svg" />
|
|
<TopButton id="mouse" src="bar/mouse.svg" />
|
|
<TopButton id="fade" src="bar/fade.svg" />
|
|
<TopButton id="move" src="bar/move-all.svg" />
|
|
<TopButton id="resize" src="bar/resize.svg" />
|
|
<TopButton id="inout" src="bar/inout.svg" />
|
|
<TopButton id="delete" src="bar/delete.svg" />
|
|
</rectangle>
|
|
<rectangle padding="8" gap="8" round="100%" color="~bg_color_active" justify_content="center" align_items="center">
|
|
<label size="18" text="Opacity" color="~text_color" />
|
|
<slider width="150" height="24" min_value="0" max_value="100" value="100" />
|
|
<label size="18" text="Additive:" color="~text_color" />
|
|
<sprite color="~device_color" width="20" height="20" src="bar/checkbox-checked.svg" />
|
|
</rectangle>
|
|
</div>
|
|
</elements>
|
|
</layout> |