add preset popup menu

This commit is contained in:
2019-08-30 15:32:01 +02:00
parent 462c4a52e1
commit 56bba88c14
7 changed files with 43 additions and 34 deletions

View File

@@ -79,6 +79,9 @@
<button-custom id="btn-remove" thickness="1" color="0 0" border-color=".0" shrink="1" margin="0 10 0 0">
<icon width="30" icon="bin_closed"/>
</button-custom>
<button-custom id="btn-menu" thickness="1" color="0 0" border-color=".0" shrink="1" margin="0 10 0 10">
<icon width="30" icon="resultset_next"/>
</button-custom>
</border>
</node>
</layout>
@@ -94,6 +97,19 @@
<stroke-preview id="canvas" width="1" grow="1" height="60"/>
</button-custom>
</layout>
<layout id="tpl-brush-popup">
<popup-menu positioning="absolute" position="100 100" width="200" thickness="1" border-color=".1" color=".4 .4 .4 .8" dir="col">
<button-custom id="download" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
<text text="Download Brushes" grow="1" margin="0 0 0 5"/>
</button-custom>
<button-custom id="import" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
<text text="Import Brushes" grow="1" margin="0 0 0 5"/>
</button-custom>
<button-custom id="export" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
<text text="Export Brushes" grow="1" margin="0 0 0 5"/>
</button-custom>
</popup-menu>
</layout>
<!-- PANEL TIPS/PATTERN -->
<layout id="tpl-panel-brushes">